Create Folder
create_folderCreate an AFFiNE sidebar organize folder to group items, optionally under a parent folder and at a chosen position; this changes sidebar organization only, not document content.
Instructions
Experimental: create an AFFiNE organize folder node in the sidebar tree. This only changes sidebar organization, not document content.
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": {
"name": "<name>"
},
"name": "create_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Folder name | |
| index | No | Optional fractional index. Defaults to append-after-last. | |
| parentId | No | Parent folder id. Omit for root-level folders. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ok | No | ||
| code | No | ||
| data | No | ||
| type | No | ||
| error | No | ||
| index | No | ||
| details | No | ||
| parentId | No | ||
| causeCode | No | ||
| retryable | No | ||
| storageDocId | No | ||
| recoveryGuidance | No |