export_query
Executes a single read-only SELECT and writes the full, uncapped result to a local Parquet or CSV file for large datasets or downstream local processing.
Instructions
Execute a single read-only SELECT statement and write the full, uncapped result to a local Parquet or CSV file instead of returning it. Use this instead of query for large results or when the output will be processed by other local tools.
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": {
"sql": "<sql>",
"path": "<path>"
},
"name": "export_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| path | Yes | ||
| format | No | parquet |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |