export_table_to_csv
Exports MySQL table data to CSV with filtering, sorting, and pagination. Use it to save query results as spreadsheet-ready files for reporting or sharing.
Instructions
📄 Exports table data to CSV format with filtering, pagination, and sorting. Requires both utility and read permissions.
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_name": "<table_name>"
},
"name": "export_table_to_csv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | Array of filter conditions | |
| sorting | No | ||
| pagination | No | ||
| table_name | Yes | Name of the table to export | |
| include_headers | No | Whether to include column headers in the CSV output |