Update folder
folder_updateGive any folder a new slug (newSlug), set any folder's history (how many earlier versions its files' whole-file updates keep; null follows the workspace; a workspace folder's by anyone in the workspace but a viewer, and that of the folder holding the workspace's guide only by the workspace's owner or a member of the team that owns it), or set its description (what it holds, one line first; null clears it), one per call: id is the folder's id (any kind: personal, team or workspace), or its slug: in workspaceId when given, else in team, else one of your personal folders. The workspace is the folder's own. A workspace folder's change needs why; expectedWorkspaceRevision is optional: send the folder's workspace_revision to refuse (CONFLICT) if it changed since. A description counts toward storage: one that does not fit is refused STORAGE_LIMIT_REACHED.
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": "folder_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The folder: its id (any kind), or its slug: in workspaceId when given, else in team, else one of your personal folders. | |
| why | No | Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters. | |
| team | No | With a folder slug: the team (slug or id) it belongs to. | |
| history | No | How many earlier versions whole-file updates of the files in it keep: off, all, or a number from 1 to 100; null follows the workspace (default off). A file's own setting wins. Takes effect at each file's next write; deletes nothing now. | |
| newSlug | No | The folder's new slug. | |
| description | No | What the folder holds: one line first (lists show the first line), at most 64000 characters; null clears it. | |
| workspaceId | No | With a folder slug: the workspace it is in (its id or its slug). | |
| expectedWorkspaceRevision | No | Optional, a workspace folder's: refuse (CONFLICT) if the folder changed since this workspace_revision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes |