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.
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 |