Create Folder
create_folderCreate a new sidebar folder in AFFiNE to organize documents by group. This updates the sidebar tree only, leaving document content unchanged.
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 | Yes | ||
| data | Yes | ||
| type | Yes | ||
| index | Yes | ||
| parentId | Yes | ||
| storageDocId | Yes |