Download a table as a file
exportGet a DOWNLOAD LINK for a table you hold, as a file: csv, xlsx (Excel), json or parquet. This is how the user gets their cleaned data, or a wrangle / sql_query result, OUT -- the whole table, not a page of it. Give the user the download_url exactly as returned; it opens in a browser or with curl, and needs no key.
The link works for ONE HOUR and then stops; call export again for a fresh one (the table itself stays for as long as its table_id does). Anyone holding the link can download the file during that hour, so hand it to the user and to nobody else. The link does not reveal the table_id.
Do NOT page a table with rows to reproduce it in the conversation when the user wants the file: call export. filename names the downloaded file (letters, digits, dot, dash, underscore); the format's extension is added for you.
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": {
"table_id": "<table_id>"
},
"name": "export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 'csv', 'xlsx', 'json' or 'parquet' | csv |
| filename | No | name of the downloaded file, without or with the extension | |
| table_id | Yes | the table to export |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||