export_table_data
Export data from a SQL Server table to JSON or CSV, with optional WHERE clause filtering and row limits for controlled data extraction.
Instructions
Export table data to JSON or CSV format
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": {
"tableName": "<tableName>",
"format": "<format>"
},
"name": "export_table_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows to export (default: 1000) | |
| format | Yes | Export format | |
| schema | No | Schema name (default: dbo) | |
| tableName | Yes | Name of the table | |
| whereClause | No | Optional WHERE clause to filter data |