export_query_file
Export read-only SQL query results to CSV or XLSX files on your local machine.
Instructions
Export a read-only query result to a local CSV or XLSX file.
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": {
"connection_id": "<connection_id>",
"sql": "<sql>",
"output_path": "<output_path>"
},
"name": "export_query_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| limit | No | ||
| format | No | csv | |
| file_name | No | ||
| overwrite | No | ||
| export_all | No | ||
| output_path | Yes | ||
| connection_id | Yes |