Convert CSV, XLSX or text PDF to JSON
convert_documentDecant: Convert an uploaded file (file_base64) or public URL: CSV and XLSX become JSON rows per sheet; text PDFs become text per page. Up to 5 MB decoded, 20,000 rows per sheet; no OCR, PDF table grids or schema extraction. No account or API key; free within the shared daily limit. Files are sent to Decant, processed in memory and not stored. URL fetching honours robots.txt. Send exactly one input; local files need not be published. For a large file, pass limit (and offset) to page the rows, since many hosts show only part of a long tool result. Raw-upload HTTP is also available.
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": "convert_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public HTTP(S) file URL; omit when sending file_base64 | |
| limit | No | At most this many rows per sheet; row_count stays the total and next_offset is where the next page starts. Omit for every row | |
| sheet | No | Only this XLSX sheet, if specified | |
| offset | No | First row of each sheet to return (0-based), to page a large file | |
| filename | No | Optional filename with .csv, .xlsx or .pdf extension for type detection; not a filesystem path | |
| file_base64 | No | File bytes encoded as standard padded base64 (up to 5 MB decoded); not a path or data URL. Use instead of url. |