read_page
Extract text, lines, words, bounding boxes, and OCR confidence from a single PDF page using existing text layers or Tesseract OCR.
Instructions
One page's text and lines (boxes in PDF points, OCR confidence); with words, every word too.
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": {
"path": "<path>",
"page": "<page>"
},
"name": "read_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | render resolution for OCR | |
| psm | No | Tesseract layout: 3 a page, 4 a column, 6 a block, 11 sparse | |
| lang | No | eng | |
| page | Yes | from 1 | |
| path | Yes | ||
| words | No | ||
| force_ocr | No |