update_features
Updates attributes and/or geometry for rows matching a SQL where clause in ArcGIS Pro, enabling edit mode when required and optionally saving edits.
Instructions
Update attributes and/or geometry of rows matching a where clause. Switches editing on if the project requires it.
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": "update_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Stop after this many rows (0 = no limit). | |
| where | No | SQL where clause selecting the rows to update. | |
| geometry | No | New geometry as WKT, applied to every match. | |
| map_name | No | Map to act on; defaults to the active map. | |
| attributes | No | Field/value pairs to write. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| save_edits | No | Commit the edits immediately instead of leaving them pending. | |
| allow_update_all | No | Required confirmation when no where clause is given. | |
| use_edit_session | No | Wrap in an edit session. | |
| geometry_spatial_reference | No | WKID of the geometry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |