update_category
Modify a category's name, sort order, parent, or archive status. Use an empty parent ID to move it to top level; invalid depth or cycles are rejected.
Instructions
Update fields of a category (rename, re-sort, re-parent, archive). Pass an empty string for parent_category_id to move to top-level. Depth > 3 and cycles are rejected.
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": {
"category_id": "<category_id>"
},
"name": "update_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | ||
| name_en | No | ||
| name_zh | No | ||
| operator | No | system | |
| sort_order | No | ||
| category_id | Yes | ||
| is_archived | No | ||
| parent_category_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||