add_fastener
Insert a parametric ISO fastener—socket head cap screw, hex bolt, hex nut, or washer—into a FreeCAD document at a given position and direction, with BOM part number and description set.
Instructions
Generate a parametric ISO-style fastener (steel, with part number and description set for the BOM): shcs = ISO 4762 socket
head cap screw, hex_bolt = ISO 4017, hex_nut = ISO 4032, washer = ISO 7089. length (mm under the head) is required for bolts.
position is the bearing face (underside of the head / one face of the nut or washer); direction is the way the shank
points, e.g. [0,0,-1] for a screw going down from a top face. Modelled nominal size (no threads).
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": {
"doc": "<doc>",
"name": "<name>",
"kind": "<kind>",
"size": "<size>"
},
"name": "add_fastener"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | ||
| kind | Yes | ||
| name | Yes | ||
| size | Yes | ||
| length | No | ||
| position | No | ||
| direction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |