Import Layer to Connection
import_layer_to_connectionWrite a loaded vector layer into a saved connection as a new table; set overwrite to true to replace an existing table instead of failing.
Instructions
Write a loaded vector layer into a saved connection as a new table (PostgreSQL, GeoPackage, ...). Fails if the table exists unless overwrite=true.
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": {
"layer_id": "<layer_id>",
"provider": "<provider>",
"connection": "<connection>",
"table": "<table>"
},
"name": "import_layer_to_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| schema | No | ||
| layer_id | Yes | ||
| provider | Yes | ||
| overwrite | No | ||
| connection | Yes |