Edit a category
update_categoryUse this to rename a category, change its emoji or move it. expectedRevision is the category's lockVersion from get_group.
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": {
"groupToken": "<groupToken>",
"categoryToken": "<categoryToken>",
"expectedRevision": "<expectedRevision>"
},
"name": "update_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The category's new name. | |
| emoji | No | A new emoji for the category. | |
| position | No | Its place in the category list, 1 first. Only this category's number changes: categories on the same number keep the order they were added in. | |
| groupToken | Yes | The group's token, from `listGroups` or `listSearchResults`. | |
| categoryToken | Yes | The category's token, from `showGroup`. | |
| expectedRevision | Yes | The `lockVersion` the client last saw on the record it is changing. A mismatch is `409 CONFLICT` with the record as the server now has it. |