mssql_export_table_data
Export SQL Server table data to JSON or CSV files with optional row limits, WHERE filters, custom delimiters, and overwrite control.
Instructions
Export table data to JSON or CSV format
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to export | |
| where | No | WHERE clause without the WHERE keyword | |
| format | No | json | |
| schema | No | Schema name (defaults to dbo) | |
| delimiter | No | CSV delimiter | , |
| overwrite | No | Replace the output file if it already exists | |
| tableName | Yes | Table to export | |
| outputPath | Yes | Path to save the exported data (.json or .csv); relative paths resolve against --workspace-dir or the working directory | |
| connectionString | No | SQL Server connection string (optional; requires --allow-tool-connection-string) |