move_layer
Reposition a layer before or after a reference layer, or nest it inside a group layer, to control drawing order in an ArcGIS Pro map.
Instructions
Reorder a layer relative to another, or move it into a group layer.
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": "move_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | No | Map to act on; defaults to the active map. | |
| position | No | BEFORE or AFTER the reference layer. | BEFORE |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| group_layer | No | Group layer to move it into instead. | |
| reference_layer | No | Layer to position relative to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |