Zoom to Layer
zoom_to_layerZooms the QGIS map canvas to the full extent of a specified layer, so you can quickly focus the view on the layer you need to inspect or edit.
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 |