kb_documents_restore
Restore a soft-archived document (clears archived_at). Reverse of kb_documents_archive.
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": {
"document_id": "<document_id>"
},
"name": "kb_documents_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | Document id (must be archived) | |
| tenant_slug | No | Tenant slug to target. Required when your token grants several workspaces; omit when it grants one. If you omit it with several, the refusal names your default workspace; call kb_tenants_list to see every workspace the token grants. | |
| include_body | No | Include the full document body_md (default false; off keeps the response small - restoring does not touch the body, and the cleared archived_at confirms the change). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes |