Parse PDF to structured JSON/CSV
parse_documentExtract line items and header fields from construction and procurement PDFs into a chosen schema, returning schema-strict JSON or CSV with confidence scores and warnings.
Instructions
Extract line items and header fields from a PDF into the chosen schema.
Returns document (schema-strict JSON), csv (optional), confidence 0-1 with a breakdown, method (deterministic | hybrid | llm), warnings and billing info.
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": {
"schema": "<schema>"
},
"name": "parse_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | Target schema: boq, invoice, quote or spec_sheet (see list_schemas) | |
| pdf_url | No | Public http(s) URL that returns the PDF bytes | |
| allow_llm | No | Allow the LLM fallback for low-confidence pages | |
| pdf_base64 | No | The PDF file, base64-encoded (data: URI prefix allowed) | |
| output_format | No | json, csv or both | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||