Draw Line
draw_lineDraws a straight line between two XY coordinates in the most recent Fusion 360 sketch or a named sketch; Z values are ignored because curves lie in the sketch plane.
Instructions
Draw a line in the most recent sketch, or in sketch_name
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": {
"start_x": "<start_x>",
"start_y": "<start_y>",
"end_x": "<end_x>",
"end_y": "<end_y>"
},
"name": "draw_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_x | Yes | ||
| end_y | Yes | ||
| end_z | No | Ignored: sketch curves lie in the sketch plane. Leave at 0 and use create_sketch(z_offset=...) to move the plane itself. | |
| start_x | Yes | ||
| start_y | Yes | ||
| start_z | No | Ignored: sketch curves lie in the sketch plane. Leave at 0 and use create_sketch(z_offset=...) to move the plane itself. | |
| sketch_name | No | Sketch to draw into (default: the most recent sketch). |