Set Active Layer
set_active_layerSelects a layer by its ID to make it the active layer in QGIS, enabling subsequent editing and processing commands to target it.
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 |