send_gcode
Send G-code or Grbl commands to CNC machines running FluidNC firmware. Execute single commands with automatic safety classification, requiring confirmation for dangerous operations.
Instructions
Send a single G-code or Grbl command to the CNC machine. Safety level is auto-classified. DANGEROUS/CRITICAL commands require 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": {
"command": "<command>"
},
"name": "send_gcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | G-code or Grbl command to send | |
| confirm | No | Must be true for DANGEROUS or CRITICAL commands |