alter_field
Rename an existing ArcGIS Pro layer field, or update its alias or text length to match your data schema.
Instructions
Rename a field or change its alias/length.
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>",
"field_name": "<field_name>"
},
"name": "alter_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | No | Map to act on; defaults to the active map. | |
| new_name | No | New field name. | |
| new_alias | No | New alias. | |
| field_name | Yes | Existing field name. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| field_length | No | New length for TEXT fields. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |