Solve Mates
solve_matesSolve the mate graph and get part poses. Pass code/file for an atomic source-bound solve, or omit both to use the active assembly. Returns { ok, status, poses, iterations?, evaluationEvidence? } where each pose is a serialized Transform ({ translation, rotateAxis, rotateDeg }). Optional poses overrides are keyed by mate name and accept only solver-supported pose coordinates. Fastened mates have zero articulation DOFs and planar mates have no supported pose coordinate; overrides for either return feature.invalid-args. Supplied source is captured once, consumed within this call and released after solving.
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": "solve_mates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Inline kernelCAD source to capture and solve in this call. | |
| file | No | Path to a kernelCAD script to capture and solve in this call. Hosted: `code`, `project:<slug>` (head), or a Studio `/p/<slug>?version=N` link (pinned); no local files. | |
| poses | No | Optional numeric overrides keyed by mate name. Only mate types with solver-supported pose coordinates accept overrides; fastened mates have zero articulation DOFs and planar mates have no supported pose coordinate, so overrides for either return `feature.invalid-args`. | |
| assembly | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||