add_layer
Loads a local vector or raster layer into a live QGIS session from a file path, including GeoPackage sublayers via 'file.gpkg|layername=x'.
Instructions
Add a vector/raster layer from a local path (GeoPackage sublayer syntax 'file.gpkg|layername=x' works).
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_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | auto | |
| name | No | ||
| path | Yes |