insert_features
Inserts new rows into a layer or table, enabling editing when the project requires it and supporting attribute-only or geometry records from WKT, coordinates, or Esri JSON.
Instructions
Insert new rows into a layer or table. 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>",
"features": "<features>"
},
"name": "insert_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| features | Yes | Rows, e.g. [{"attributes": {"NAME": "A"}, "geometry": "POINT (100 15)"}]. geometry accepts WKT, [x, y] or Esri JSON. | |
| 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. | |
| save_edits | No | Commit the edits immediately instead of leaving them pending. | |
| use_edit_session | No | Wrap in an edit session (needed for enterprise/versioned data). | |
| geometry_spatial_reference | No | WKID of the supplied geometry; defaults to the layer's. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |