gcode_safety_check
Inspect G-code for safety issues like spindle off during cuts, missing unit declaration, and zero feedrate, preventing dangerous machine behavior.
Instructions
Check G-code for safety issues: spindle off during cuts, missing unit declaration, zero feedrate on cut moves, and other DANGER/WARNING/CAUTION issues. Run this before ugs_run_file for any G-code you did not write yourself.
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": {
"file_path_or_code": "<file_path_or_code>"
},
"name": "gcode_safety_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path_or_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |