Restore Document from Trash
restore_docRestore a document from the AFFiNE trash without altering its content. Use this safe retry action to recover deleted AFFiNE documents by document ID and workspace ID.
Instructions
Restore a document from the AFFiNE trash without changing its content. This is safe to retry.
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": {
"docId": "<docId>"
},
"name": "restore_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | AFFiNE document id. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| kind | No | ||
| docId | No | ||
| error | No | ||
| title | No | ||
| status | No | ||
| changed | No | ||
| details | No | ||
| inTrash | No | ||
| causeCode | No | ||
| retryable | No | ||
| trashDate | No | ||
| workspaceId | No | ||
| readBackVerified | No | ||
| recoveryGuidance | No | ||
| previouslyInTrash | No |