parse_pdf
Extract structured text and bounding boxes from PDFs, with OCR support for scanned pages.
Instructions
Parse a PDF and return structured text plus bounding boxes for every text item on every page.
Bounding-box coordinates are in PDF points (1 pt = 1/72 inch), with the origin at the top-left corner of each page.
Returns JSON: { "pages": [ { "page_num", "width_pts", "height_pts", "text", "text_items": [ { "text", "x", "y", "width", "height", "font_name", "font_size", "confidence" } ] } ] }
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": {
"pdf_path": "<pdf_path>"
},
"name": "parse_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Resolution used internally (affects OCR quality). Default 150. | |
| pages | No | Comma-separated page numbers, e.g. '1,3,5'. Omit for all pages. | |
| pdf_path | Yes | Absolute path to the PDF file to parse. | |
| ocr_enabled | No | Run OCR on image-based / scanned pages. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |