Add Features
add_featuresAdd features to a vector layer by specifying attributes and geometry in WKT format. Returns the number of features added.
Instructions
Add features to a vector layer. Each feature: {attributes: {field: value}, geometry_wkt: 'POINT(1 2)'}. Returns count of added features.
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_id": "<layer_id>",
"features": "<features>"
},
"name": "add_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| features | Yes | ||
| layer_id | Yes |