Move a document out of Archived
unarchive_documentMove an archived document back: to the top of the user's personal library, or into the folder or team named. It opens again, starting fresh: the share links, favourites and Recent entries it had are gone. find_documents with archived true lists the archived documents.
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": "unarchive_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | No | A team the user belongs to, to move it into that team’s library. | |
| folderId | No | A folder to move it into. A folder in a team library needs that team as teamId too. Without folderId or teamId it goes to the top of the personal library. | |
| documentId | Yes | The archived document to move out (from find_documents with archived true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The document id. | |
| url | Yes | Link that opens the document in the livediagram editor. | |
| name | Yes | The document name, or null if unknown. | |
| library | Yes | Where it is now: "personal", or the name of the team whose library holds it. | |
| unarchived | Yes | Always "document". |