Recognize pdf
recognize_pdfRead a PDF on a wiki page with its formulas by Mathpix, on the project's own Mathpix key — which costs the project money, per page. First call it with estimate_only=true: it answers the pages, the price a page (with the day it was checked, and whether it is the platform's or the project's own) and the sum. Then call again with max_usd at least that sum, which is the most you agree to spend; without it nothing is sent, and a send that would cost more is refused. Optional 'pages' reads a range — a chapter of a book. The reading runs in the background: list_pdf_copies / read_pdf_text say when it is done and how many pages Mathpix billed. Refused when the project has no key (it is set on the project's screen only, never here) or its pages for the day are spent. Requires permission to write in the project.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "recognize_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | A page or a range to read: '5', '3-7'. The whole file without. | |
| fileId | No | The file's id (list_pdf_copies). | |
| pageId | No | Wiki page id, with 'filename', instead of fileId. | |
| max_usd | No | The most you agree to spend, in US dollars — at least the estimate. | |
| filename | No | The PDF's name on that page. | |
| estimate_only | No | True: only say what it would cost, send nothing. | |
| replace_edits | No | Pages people or agents edited keep their edits by default, the new reading beside them to compare; true replaces those edits with the new reading (their history stays). The estimate's editedPages says how many there are. |