List CMS items
list_itemsLists a collection's items with search (q), status, filters (field, op eq, ne, contains, set or unset, value) and sort ("-publishedAt"), a page at a time (pageSize up to 100), with the total. Long text is cut: get_item reads one whole. Drafts included. With locale (a language from list_locales, on a translatable collection): values in that language, the default text where a translation is missing, and each item's translation state (missing, draft or published) and translated slug; search, filters and sort use the default values. Reads only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection": "<collection>",
"projectId": "<projectId>"
},
"name": "list_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search titles, slugs and text fields | |
| page | No | ||
| sort | No | A field or system key ("title", "-publishedAt" for newest first); default the collection's sort | |
| branch | No | Optional branch; default the branch the workspace has open | |
| locale | No | Optional: a language code from list_locales (not the default) to read or write the item in that language; leave out for the default language | |
| status | No | ||
| filters | No | All must match | |
| pageSize | No | ||
| projectId | Yes | Project id from list_projects | |
| collection | Yes | The collection id (its folder under content/), from list_collections |