rename_layer
Rename a layer or table in an ArcGIS Pro map's table of contents by specifying its current name and new display name.
Instructions
Rename a layer in the table of contents.
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>",
"new_name": "<new_name>"
},
"name": "rename_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | No | Map to act on; defaults to the active map. | |
| new_name | Yes | New display name. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |