set_anchors
Define named anchors on CAD objects to mark positions and directions that persist, follow Placement, and record a modeling step; optionally replace or merge and use local/global coordinates.
Instructions
Define named anchors on an object. They persist with the document, move with its Placement, and the write becomes a modeling-session step.
Args:
anchors: {name: {"pos": [x, y, z], "dir": [x, y, z] | null}}.
replace: Replace all existing anchors instead of merging.
coord_frame: local stores values as given; global converts them first, for global source coordinates.
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_name": "<doc_name>",
"obj_name": "<obj_name>",
"anchors": "<anchors>"
},
"name": "set_anchors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchors | Yes | ||
| replace | No | ||
| doc_name | Yes | ||
| obj_name | Yes | ||
| coord_frame | No | local |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |