Remove a file from a document
remove_attachmentRemoves one attached file from a document. Downloads stop at once, even from a page a reader already has open; the file leaves the page's list the next time the page loads. Copies a reader already downloaded stay with them. It removes the file only: the page, its links and its reading history are untouched, and there is no tool that deletes a page or a link. The file cannot be recovered from HTMLRadar; attaching it again needs the original file. list_attachments returns the attachment id.
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>",
"attachment_id": "<attachment_id>"
},
"name": "remove_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The document the file is attached to: from list_documents or list_shares. | |
| attachment_id | Yes | The attachment id from list_attachments. |