PDF tables → structured rows (with schema alignment)
extract_tablesExtract tables from a PDF into structured rows (JSON + CSV). Pass fields to force a fixed set of columns — that aligns a pile of documents that each name their headers differently into one consistent table. Rows the model was unsure about are flagged rather than guessed. Text-layer PDFs only.
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": {
"url": "<url>"
},
"name": "extract_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public URL of the PDF. | |
| fields | No | Optional comma-separated target columns, e.g. "invoice_no,supplier,date,amount". Omit to infer from the header. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||