zoom_to_layer
Set the map camera to the extent of a specified layer to focus on a study area, boundary, or analysis result. Saves the project when requested.
Instructions
Set the selected map's default camera extent to match a named layer's data extent. Use this before exporting a map view or reopening the .aprx so the map focuses on a study area, boundary, analysis result, or target dataset. Reads the layer data source extent, updates the map defaultCamera, and saves the project when save=true.
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": {
"params": "<params>"
},
"name": "zoom_to_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||