pg_import_table_data
Import JSON or CSV file data into PostgreSQL tables using specified connection parameters and file paths.
Instructions
Import data from JSON or CSV file into a table
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>",
"inputPath": "<inputPath>"
},
"name": "pg_import_table_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionString | No | ||
| tableName | Yes | ||
| inputPath | Yes | absolute path to the file to import | |
| truncateFirst | No | ||
| format | No | json | |
| delimiter | No |