Add Organize Link
add_organize_linkAdd a doc, tag, or collection link to an AFFiNE organize folder. Use move_organize_node for existing links to avoid duplicates.
Instructions
Experimental: add a doc, tag, or collection link under an AFFiNE organize folder. Use move_organize_node for an existing link node instead of creating a duplicate link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of target represented by the organize link. | |
| index | No | Optional fractional index. Defaults to append-after-last. | |
| folderId | Yes | AFFiNE organize folder node id. | |
| targetId | Yes | Target doc/tag/collection id | |
| 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 |