create_sketch
Creates a new sketch on the XY, XZ, or YZ plane and optionally attaches it to a PartDesign Body, returning the sketch name and constraint status.
Instructions
Create a new sketch on a plane (XY, XZ, or YZ).
If body_name is specified, attaches the sketch to that PartDesign Body.
Returns the sketch name and constraint status.Contract: explicit internal names recommended. Length mm, area mm^2, volume mm^3; field units override defaults. Errors: invalid_arguments, document_not_found, object_not_found, transaction_conflict, operation_failed, execution_timeout; transport failures are possible. Timeout is not cancellation: never blindly retry mutations. Legacy return shape preserved.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_sketch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Requested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name. | Sketch |
| plane | No | Plane XY, XZ or YZ; sketch plane is relative to its container, PartDesign mirror uses Body origin. | XY |
| offset | No | offset: mm, container_local; offset along positive global X/Y/Z for YZ/XZ/XY. | |
| doc_name | No | Internal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly. | |
| body_name | No | Internal object Name in the selected document, never Label; must have the type required by this tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |