list_views
List saved views (list, board, table, gallery, calendar, feed) on a collection.
Last updated
list_views
List the saved views defined on a collection. Views encode filters, sorts, groupings, and the layout (list, board, table, gallery, calendar, feed) the human UI uses to render the collection.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
collection_id | string | yes | The ID of the collection whose views to list. |
Returns
A JSON array of view summaries:
| Field | Type | Description |
|---|---|---|
id | string | Stable view ID. |
name | string | Display name. |
type | string | Layout kind: list, board, table, gallery, calendar, feed. |
isDefault | boolean | True if this is the default view for the collection. |
position | number | Ordering position in the UI. |
Example
{
"tool": "list_views",
"arguments": {
"collection_id": "col_a1b2c3"
}
}
Sample response:
[
{ "id": "view_default", "name": "All", "type": "list", "isDefault": true, "position": 0 },
{ "id": "view_board", "name": "By status", "type": "board", "isDefault": false, "position": 1 }
]