Extract tables from a PDF to Excel/CSV
pdf_tablesExtract tables from a PDF to Excel/CSV. Finds the ruled and unruled tables in a PDF's text layer and returns them as one .xlsx (a sheet per table), a CSV per table (formula-safe) and JSON, with totals and number columns re-added where present. Same engine as the PDF tables page. Use when: An agent has a PDF report, statement or price list and needs its tables as data. Not for: Scanned PDFs without a text layer (reported, not OCR'd); tables that continue across pages are returned per page. File types: pdf. Max 30 MB.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pdf_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Tool options, if any (see the tool description). | |
| file_url | No | Public https URL of the file (preferred). | |
| filename | No | File name with its extension, e.g. part.step. | |
| file_base64 | No | The file as base64, for small files without a URL (give filename too). |