batch_parse_pdfs
Batch-process every PDF in a folder by extracting text, bounding boxes, and OCR, then saving annotated page images and a summary per file.
Instructions
Parse all PDFs in a folder. For each PDF, writes to <output_folder>//: pages.json – text + bounding boxes per page summary.txt – plain text of the whole document page_N.png – raw page screenshot page_N_cited.png – screenshot with bounding-box highlights
Returns a JSON summary of successes and any errors.
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": {
"folder_path": "<folder_path>"
},
"name": "batch_parse_pdfs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_path | Yes | Absolute path to folder containing PDF files. | |
| max_workers | No | PDFs to process in parallel. Default 4. | |
| ocr_enabled | No | Run OCR on image-based pages. | |
| output_folder | No | Where to write outputs. Defaults to <folder>/liteparse_output/ |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |