Zoom to Layer
zoom_to_layerZoom the QGIS map canvas to the full extent of a specified layer, enabling focused navigation to that layer's geographic area.
Instructions
Zoom the map canvas to the full extent of the specified layer.
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": "zoom_to_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_id | Yes |