extract_tables
Pulls tables from PDF files as Markdown or CSV, labeled by page and size; set page ranges and choose a line or text strategy for ruled or borderless tables.
Instructions
Extract tables from a PDF as markdown or CSV text, labelled with page number and size.
strategy 'lines' (default) finds tables drawn with ruling lines; use 'text' for borderless tables aligned by whitespace (less precise). Scanned PDFs have no tables to find. Output is capped at roughly max_tokens with a continue hint, like read_pdf.
pages: 1-based ranges like '2-4,9'. Limiting pages is much faster on big files.
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>"
},
"name": "extract_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No | ||
| format | No | markdown | |
| password | No | ||
| strategy | No | lines | |
| max_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |