export_data
Exports SQL query results to CSV or JSON files using a specified database connection. Supports row limits and optional headers.
Instructions
Export query results to various formats (CSV, JSON, etc.)
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": {
"connectionId": "<connectionId>",
"query": "<query>"
},
"name": "export_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The SQL query to execute for export (SELECT only) | |
| format | No | Export format (csv or json) | csv |
| maxRows | No | Maximum number of rows to export | |
| connectionId | Yes | The ID or name of the database connection | |
| includeHeaders | No | Include column headers in export |