Get Collection
get_collectionRetrieve a specific AFFiNE sidebar collection by its ID, including its rules and allow-list. Use when you need details for a known collection ID.
Instructions
Read one AFFiNE sidebar collection by id, including rules and allow-list. Use list_collections first when the id is unknown.
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": {
"collectionId": "<collectionId>"
},
"name": "get_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. | |
| collectionId | Yes | AFFiNE collection id from list_collections or create_collection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| rules | Yes | ||
| allowList | Yes |