Trim Sketch Entity
sketch_trimTrims away a sketch entity segment at a specified point back to its intersection with other geometry, cleaning overlapping shapes into a single profile.
Instructions
Trim away the piece of a sketch entity at a point, back to where it meets others.
Use it to clean up overlapping shapes into one profile, such as the arc inside
a keyhole. point ([x, y] sketch mm) is on the piece to remove; an entity
that meets nothing is removed whole. Needs: an open sketch with an entity at
the point. Changes: removes that piece. Returns: trim with the point and
the sketch's segments_before and segments_after. A trimmed entity's id may
no longer name a whole segment. Nothing at the point fails as invalid_input.
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": {
"input_data": "<input_data>"
},
"name": "sketch_trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | `point`, `[x, y]` in sketch mm. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||