Edit document
edit_documentEdit uploaded Word, PowerPoint, Excel, or PDF files according to instructions; apply only requested changes and return the updated file plus a change report.
Instructions
Change an uploaded Word, PowerPoint, Excel or PDF file as asked (e.g. 'blue headings and add a confidentiality clause'). Only what is asked changes; the rest stays identical. Returns the new file (after about 4 minutes, its id and status instead: call get_document later); get_report lists every change, with the text before and after.
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": {
"file_id": "<file_id>",
"instructions": "<instructions>"
},
"name": "edit_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | From upload_file, or the id of a document Doconda made (list_documents). | |
| quality | No | Optional. fast: the cheapest and quickest (about a minute), any style, but it can't copy a file's design. standard: more care, takes minutes. best: the highest quality and price, e.g. to copy a file's design or to edit with comments or tracked changes. auto (default): Doconda picks the level the request needs. The price of the highest level it may use is held from the balance while the document is made and what is not used is returned: with a low balance, pick fast or set max_quality. | |
| max_quality | No | Only with quality auto: the highest level Doconda may choose. It caps the price and the amount held, e.g. standard. | |
| instructions | Yes | What to change, in the user's words. |