⚠️ 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| table | No | ||
| file_path | Yes | ||
| sheet_name | No | Sheet1 | |
| database_name | No |