Get an item
cms_items_getReturns one item, looked up by itemId or by the collectionId + slug pair (provide exactly one of the two). The data object is complete and schema-shaped: every currently-defined field is present and missing optional values read as null. depth (0–3, default 0) embeds referenced items in place of their ids, one level per unit; referenced items that were deleted read as null (single reference) or are omitted from arrays (multi-reference). Set published to "true" or "false" to match only a published or only a draft item (a mismatch reads as not found). List items that reference it with cms.items.backreferences.list.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cms_items_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Item slug within the collection. Pair with `collectionId`. | |
| depth | No | ||
| itemId | No | Item id. Provide either this or the `collectionId` + `slug` pair. | |
| published | No | Only match a published (`"true"`) or draft (`"false"`) item; a mismatch reads as not found. Omit to match either. | |
| collectionId | No | Collection to look the item up in by slug. Pair with `slug`. |