export_tables
Save each table found in a PDF as a separate CSV file that opens cleanly in Excel, with optional formula escaping and overwrite control. Use it to turn PDF tables into spreadsheet data.
Instructions
Save the tables extract_tables finds as CSV files (UTF-8, readable by Excel), one per table, named page001-table01.csv and so on, in a folder (default: "_tables" next to the PDF). Spreadsheets run cells starting with = + - @ (or their full-width forms) as formulas, so such cells get a leading apostrophe unless escape_formulas=false (plain numbers like -5 are left alone). Limits and pages_skipped are as for extract_tables. Nothing is written if a file exists, unless overwrite. Needs the owner password if the PDF forbids copying.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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": {
"input_path": "<input_path>"
},
"name": "export_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| password | No | ||
| strategy | No | lines | |
| overwrite | No | ||
| input_path | Yes | ||
| max_tables | No | ||
| output_dir | No | ||
| escape_formulas | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| complete | Yes | ||
| truncated | Yes | ||
| output_dir | Yes | ||
| pages_skipped | Yes | ||
| pages_searched | Yes |