Get a CMS collection
get_collectionReads one collection: its settings (name, singular, plural, URL folder, sort), groups, every field with its type, rules and options, the collection page settings (SEO and share templates, JSON-LD, custom code), the item count, the CMS kit state and the collection page (file, route, whether it exists and is routed), and how each field type's value is written. Read it before writing items or binding a page. 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": "get_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Optional branch; default the branch the workspace has open | |
| projectId | Yes | Project id from list_projects | |
| collection | Yes | The collection id (its folder under content/), from list_collections |