Read a document to change it
get_documentReturns the current contents of a document on HTMLRadar so they can be changed and put back with replace_document. A change to a page already on HTMLRadar is made this way, for pages up to 30 MB, the same limit as the website: read the page here, then send the edited short form, or only the changes, to replace_document; a whole new file is needed only to replace the page itself. Each embedded PNG, JPEG, GIF and WebP image appears as a short htmlradar-image reference instead of its data; unchanged references restore the original images, and other embedded images, such as SVG, stay in the markup. Up to 5 MB of text and code, with its images as references, the whole page comes back. Between 5 MB and 20 MB it is too large to return whole: pass query, a word or phrase from the part to change, and it returns up to 20 passages where that text appears, exact text for edits. Over 20 MB of text and code besides its images, the page cannot be read or changed here. A document served from its own address has no stored contents to return. It reads only this account's documents and changes nothing.
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>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Text to find, 1 to 200 characters, matched literally with letter case ignored, such as a product name or a price. Returns up to 20 passages around the matches, and how many there are, instead of the whole page. For a page too large to read whole, the passages provide exact text for edits. | |
| document_id | Yes | The document to read: the document id from list_documents or list_shares. |