Zoom To Layer
arcgis_pro_zoom_to_layerZoom a map frame to a specified layer in an ArcGIS Pro project using the APRX, map, layout, and layer names.
Instructions
ArcGIS Pro:缩放图层。返回可验证的结构化结果;写入和路径限制以服务能力为准。
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": {
"aprx_path": "<aprx_path>",
"map_name": "<map_name>",
"layer_name": "<layer_name>",
"layout_name": "<layout_name>",
"mapframe_name": "<mapframe_name>"
},
"name": "arcgis_pro_zoom_to_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | Yes | ||
| aprx_path | Yes | ||
| layer_name | Yes | ||
| layout_name | Yes | ||
| mapframe_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||