Update Collection
update_collectionModify collection settings in LightCMS to adjust content display, templates, pagination, and sorting for website content management.
Instructions
Update a collection's settings.
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": {
"id": "<id>"
},
"name": "update_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Collection ID (MongoDB ObjectID),required | |
| name | No | Collection name | |
| slug | No | Collection URL slug | |
| category | No | Content category to include | |
| sort_field | No | Field to sort by | |
| sort_order | No | Sort order: asc or desc | |
| description | No | Collection description | |
| item_template | No | HTML template for each item | |
| page_template | No | HTML template for collection page | |
| items_per_page | No | Items per page for pagination |