simplify_polygon
Simplify a polygon by reducing vertices with the Douglas-Peucker algorithm. Adjust tolerance to control how aggressive the simplification is.
Instructions
Simplify a polygon via Douglas-Peucker and write it back.
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": {
"points": "<points>"
},
"name": "simplify_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | Array of [x, y] points to simplify | |
| tolerance | No | Douglas-Peucker tolerance (higher = more aggressive) |