Manage a document (some actions irreversible)
attachment_manageAct on a document. action is one of: archive, unarchive (put away or bring back, private, reversible), cancel (give up a pending upload or a multi-part document that is still being assembled — frees the pending slot it was holding), trash_private, restore_private (a private, never-shared, ready document only), remove_my_access (a recipient gives up their own copy — affects only this account), request_retire (stop a document everywhere, for every recipient — irreversible), or request_revoke_share (end one recipient's access, named by grantId). The two request_ actions answer CONFIRM NEEDED and do nothing until the user's own explicit yes through confirm_intent.
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": {
"versionId": "<versionId>",
"action": "<action>"
},
"name": "attachment_manage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | archive | unarchive | cancel | trash_private | restore_private | remove_my_access | request_retire | request_revoke_share. | |
| grantId | No | Required for request_revoke_share: the grant to end, from attachment_read or the portal. | |
| versionId | Yes | The version_id to act on. |