archive_doc
Archive a document, or restore an archived one. Use it to take a finished document out of the list, search and activity: its text, draft and revisions stay readable at the same address, and archived set to false brings it back. Returns the document's id, title and revision number.
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": {
"id": "<id>",
"archived": "<archived>"
},
"name": "archive_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the document id, from list_docs or search_docs | |
| archived | Yes | true archives the document, false restores it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The document id. | |
| title | Yes | Its title. | |
| revisions | Yes | Its revision count. |