Trim Entity
entity_trimTrim a line against a cutting line, keeping the segment containing a specified point. Use when you need to remove part of a line at an intersection while preserving the desired side.
Instructions
Trim target against cutter, keeping the segment containing (keep_x, keep_y).
V1 supports LINE+LINE only. Cutter is treated as an infinite ray (AutoCAD's default 'implied extend' trim mode). Raises if the lines are parallel.
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": {
"target_handle": "<target_handle>",
"cutter_handle": "<cutter_handle>",
"keep_x": "<keep_x>",
"keep_y": "<keep_y>"
},
"name": "entity_trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_x | Yes | X of a point on the side of the target to KEEP | |
| keep_y | Yes | Y of a point on the side of the target to KEEP | |
| cutter_handle | Yes | Handle of the cutting line | |
| target_handle | Yes | Handle of the line being trimmed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||