Get Collection
get_collectionRead an AFFiNE sidebar collection by ID to inspect its rules and allow-list; use list_collections first when the collection ID is unknown.
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 | No | ||
| ok | No | ||
| code | No | ||
| name | No | ||
| error | No | ||
| rules | No | ||
| details | No | ||
| allowList | No | ||
| causeCode | No | ||
| retryable | No | ||
| recoveryGuidance | No |