pg_export_table_data
Export PostgreSQL table data to JSON or CSV files for analysis, backup, or data sharing purposes.
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>",
"outputPath": "<outputPath>"
},
"name": "pg_export_table_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionString | No | ||
| tableName | Yes | ||
| outputPath | Yes | absolute path to save the exported data | |
| where | No | ||
| limit | No | ||
| format | No | json |