run_gcode
Executes G-code on Klipper printers and requires confirm=True for dangerous commands, preventing accidental printer damage.
Instructions
Ejecuta G-code. Peligrosos requieren 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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gcode | Yes | ||
| confirm | No | ||
| printer | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||