run_gcode_program
Execute multi-line G-code programs on CNC routers running FluidNC firmware by sending commands line-by-line with confirmation required for safety.
Instructions
Send a multi-line G-code program to the machine, one line at a time. Requires confirm=true.
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": {
"gcode": "<gcode>"
},
"name": "run_gcode_program"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gcode | Yes | Multi-line G-code program | |
| confirm | No | Must be true to execute |