freecad_add_sketch_rectangle
Add a rectangle to a FreeCAD sketch from two opposite corner coordinates, generating four lines with coincidence constraints for parametric CAD modeling.
Instructions
Add a rectangle to a sketch (4 lines with coincidence constraints)
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": {
"sketchName": "<sketchName>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "freecad_add_sketch_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | First corner X coordinate | |
| x2 | Yes | Opposite corner X coordinate | |
| y1 | Yes | First corner Y coordinate | |
| y2 | Yes | Opposite corner Y coordinate | |
| sketchName | Yes | Name of the sketch |