add_fields
Add multiple attribute fields to an ArcGIS Pro layer or table in one call, defining each field's name, type, and alias.
Instructions
Add several fields in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | e.g. [{"name": "AREA_HA", "type": "DOUBLE", "alias": "Area (ha)"}]. | |
| map_name | No | Map to act on; defaults to the active map. | |
| 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 |