Archive a document
archive_documentMove a document the user owns to their Archived. It leaves every list (theirs and their teams'), its share links stop working, and its favourites, Recent and Most Used entries and Inbox threads are removed for everyone. While archived it can't be read or changed; unarchive_document moves it back. Only its owner can archive it, and a document in the Trash is restored first. Confirm with the user first.
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": {
"documentId": "<documentId>"
},
"name": "archive_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | The document to archive (from find_documents). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The document id. | |
| name | Yes | The document name, or null if unknown. | |
| archived | Yes | Always "document". |