⚠️ FILE WRITE: Export a table or read-only SELECT/PRAGMA/EXPLAIN query to an XLSX file (one sheet, first row = headers). Can write absolute paths. Provide exactly one of table or query.
export_xlsxExport a database table or SQL query result to an XLSX file with headers in a single sheet. Provide file path; optionally set sheet name.
Instructions
⚠️ FILE WRITE: Export a table or read-only SELECT/PRAGMA/EXPLAIN query to an XLSX file (one sheet, first row = headers). Can write absolute paths. Provide exactly one of table or query.
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": {
"file_path": "<file_path>"
},
"name": "export_xlsx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| table | No | ||
| file_path | Yes | ||
| sheet_name | No | Sheet1 | |
| database_name | No |