Add Vector Layer
add_vector_layerAdd vector layers such as shapefiles, GeoJSON, or GeoPackage to a QGIS project.
Instructions
Add a vector layer (shapefile, GeoJSON, GeoPackage, etc.) to the project.
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": {
"path": "<path>"
},
"name": "add_vector_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| path | Yes | ||
| provider | No | ogr |