Create Collection
create_collectionCreate a new sidebar collection in your AFFiNE workspace. Optionally add filter rules to automatically include documents based on tags, title, or document ID.
Instructions
Create a new AFFiNE sidebar collection with optional rules. This writes workspace sidebar metadata but does not create documents.
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_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Collection name | |
| rules | No | Optional rule set to initialize the collection with. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |