Set Layer Visibility
set_layer_visibilityToggle a layer's visibility on the QGIS map. Provide the layer ID and a boolean to show or hide the layer.
Instructions
Set a layer's visibility in the layer tree (show/hide on map).
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>",
"visible": "<visible>"
},
"name": "set_layer_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| visible | Yes | ||
| layer_id | Yes |