partdesign_hole
Create positioned holes in FreeCAD PartDesign from sketch center points, with configurable diameter, depth, threading, counterbore, or countersink options.
Instructions
Create a hole feature (positioned by sketch points).
Args:
sketch_name: Sketch with center point(s) for hole positions
diameter: Hole diameter in mm
depth: Hole depth in mm
threaded: Create threaded hole
thread_size: Thread size (e.g., 'M6', 'M8', 'M10')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
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": {
"sketch_name": "<sketch_name>",
"diameter": "<diameter>",
"depth": "<depth>"
},
"name": "partdesign_hole"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Requested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name. | Hole |
| depth | Yes | depth: mm, feature_local. | |
| cut_type | No | Hole entry style: simple, counterbore, or countersink. | simple |
| diameter | Yes | diameter: mm, feature_local. | |
| doc_name | No | Internal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly. | |
| threaded | No | Enable simplified threaded-hole metadata; not a manufacturing or strength guarantee. | |
| cut_depth | No | cut_depth: mm, feature_local. | |
| sketch_name | Yes | Internal object Name in the selected document, never Label; must have the type required by this tool. | |
| thread_size | No | Native thread size (e.g. M6x1.0); legacy M6 selects first matching diameter in runtime enum. | M6 |
| thread_type | No | ISO or UTS alias, or native FreeCAD ThreadType enumeration; unsupported values fail. | ISO |
| through_all | No | True cuts through all and ignores length; false uses the specified pocket length. | |
| cut_diameter | No | cut_diameter: mm, feature_local. | |
| thread_pitch | No | thread_pitch: mm, feature_local. | |
| countersink_angle | No | countersink_angle: deg, feature_axis. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |