zoom_to_layer
Zoom the ArcGIS Pro map view to a layer or table's full extent, with optional padding, to quickly focus on your target data.
Instructions
Zoom the map view to a layer's extent.
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_name": "<layer_name>"
},
"name": "zoom_to_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| expand_factor | No | Optional padding, e.g. 0.1 for 10% extra around the extent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |