cam_generate
Generates CAM toolpaths in Fusion in the background and polls until done, returning validity and checkToolpath results per operation. Resume a timed-out job by id instead of restarting.
Instructions
Generate toolpaths and wait for them (seconds). Returns each operation's toolpath validity and checkToolpath result, plus all_valid.
targets: setup or operation names (default: all operations of the last setup). Fusion generates in the background and this tool polls with short calls, so Fusion stays responsive. If timeout_s passes, generation continues in Fusion: call cam_generate(job=) to keep waiting rather than starting again. A bad adsk.cam call can crash Fusion: if status reports last_crash, do not repeat that call unchanged.
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": "cam_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | ||
| setup | No | ||
| targets | No | ||
| timeout_s | No | ||
| allow_user_document | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |