doc_tools_ocr
Text recognition for scans, photos of documents, screenshots and scanned PDFs: the text in reading order, each line with its page, position and confidence. English and other Latin-script text; small or soft images are enlarged first. Price: $0.03 USDC via x402, charged only on success. Part of Document tools: Work with PDFs and scans: read the text out of a PDF with page numbers and metadata, recognize the text in a scan, photo or screenshot, merge PDFs, take or reorder pages, split into parts, and turn images into a PDF..
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": "doc_tools_ocr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Or a scanned PDF as base64: its pages are drawn and read one by one. | ||
| image | No | Image as base64: a scan, a photo of a document, a screenshot (PNG, JPEG, WebP, TIFF). | |
| pages | No | For a PDF: pages to read, like "1-3". The first 10 when omitted; up to 15 per call. | |
| layout | No | auto finds columns and paragraphs; single-block for one plain block of text; single-line for a label or a number; sparse for text scattered over a picture (UI, signs). | auto |
| pdfUrl | No | ||
| imageUrl | No | ||
| minConfidence | No | Drop lines the engine is less sure of than this (0 to 100). |