Set Mapframe Extent
arcgis_pro_set_mapframe_extentSet a layout map frame's extent using X/Y bounds in an ArcGIS Pro project. Specify the .aprx, layout, map frame, and optional spatial reference to update the view.
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>",
"layout_name": "<layout_name>",
"mapframe_name": "<mapframe_name>",
"xmin": "<xmin>",
"ymin": "<ymin>",
"xmax": "<xmax>",
"ymax": "<ymax>"
},
"name": "arcgis_pro_set_mapframe_extent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xmax | Yes | ||
| xmin | Yes | ||
| ymax | Yes | ||
| ymin | Yes | ||
| aprx_path | Yes | ||
| layout_name | Yes | ||
| mapframe_name | Yes | ||
| spatial_reference_wkid | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||