Publish Interface
publish_interfaceRecord a named interface frame on a component so other parts can mate to it, saving its origin and axes in the component file for later assembly mating.
Instructions
Record a named interface frame on a component so other parts can mate to it — the published "here is where you bolt to me, and how it's oriented".
handle: the component's shaped object. name: interface name (e.g. "lid_seat", "bolt_circle", "bore_axis"). frame: {origin:[x,y,z], z_axis:[...]?, x_axis:[...]?}. z_axis defaults +Z, x_axis +X. Extra keys (e.g. bolt-circle metadata) are stored verbatim.
Persists in the component's .FCStd as a JSON property bag, so merge_assembly can mate against it later. Returns {handle, name, frame, interfaces}.
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": {
"handle": "<handle>",
"name": "<name>",
"frame": "<frame>"
},
"name": "publish_interface"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| frame | Yes | ||
| handle | Yes | ||
| workspace | No | Run this call in this named workspace |