trash_doc
Move an AFFiNE doc to the trash by id or title, or restore it with restore=true; permanent deletion is not performed.
Instructions
Move a doc to the AFFiNE trash, or restore it with restore=true. Nothing is deleted for good
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": {
"doc": "<doc>"
},
"name": "trash_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Doc id or title | |
| restore | No | ||
| workspace | No | Workspace id or name, leave out for the default workspace |