Set Active Layer
set_active_layerSelects the active layer in the QGIS layer panel using its layer ID, so agents can direct subsequent edits, styling, and processing to the intended layer.
Instructions
Set the active layer in the QGIS layer panel by layer ID.
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>"
},
"name": "set_active_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_id | Yes |