assert_profiles
Verify a sketch has the expected number of closed profiles. Returns ok=False when mismatched, catching self-intersecting polygons that silently create extra profiles.
Instructions
Check that the sketch has the expected number of closed profiles. Returns ok=False if not. Use after building a sketch to catch self-intersecting polygons (which return profiles=2 silently).
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": {
"sketch": "<sketch>",
"expected": "<expected>"
},
"name": "assert_profiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch | Yes | ||
| expected | Yes |