set_map_frame_extent
Aim an ArcGIS Pro layout's map frame at a layer, explicit extent, or fixed scale, with optional rotation and selection-only zoom.
Instructions
Point a layout's map frame at a layer, an extent or a scale.
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": {
"layout_name": "<layout_name>"
},
"name": "set_map_frame_extent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Fixed scale denominator. | |
| extent | No | Explicit extent to show. | |
| rotation | No | Frame rotation in degrees. | |
| layer_name | No | Zoom the frame to this layer. | |
| layout_name | Yes | Layout name. | |
| zoom_to_all | No | Zoom to all layers in the frame's map. | |
| map_frame_name | No | Map frame element name. | Map Frame |
| selection_only | No | Zoom to the layer's selected features only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |