Update pdf text
update_pdf_textPut one page of a PDF's recognized text right — a formula Mathpix misread, a broken paragraph, a table. Read the page first with read_pdf_text and pass its 'version' as expected_version: if somebody saved the page since, nothing is written and the answer says the version there is now. 'text' is the page's whole new text, Markdown with $…$ formulas, at most 100,000 characters. It is kept as a new version of the page with its history, as an agent on behalf of the person whose token this is; a person may revert it to the machine's text. An agent never marks a page «checked by a person» — that is a person's word on the screen. Compare with pdf_page_image of the same page before writing. Requires permission to edit the wiki page the file is on.
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": {
"page": "<page>",
"text": "<text>",
"expected_version": "<expected_version>"
},
"name": "update_pdf_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | The page of the original, from 1. | |
| text | Yes | The page's whole new text. | |
| fileId | No | The file's id. | |
| pageId | No | Wiki page id, with 'filename', instead of fileId. | |
| filename | No | The PDF's name on that page. | |
| expected_version | Yes | The page's 'version' as read_pdf_text gave it. |