check_nc_file
Review posted NC/G-code before running to flag F0 feeds, spindle-off cutting, H/D mismatches, stock-zone rapids, travel-limit moves, and missing program end; reports tool Z ranges and program extents.
Instructions
Review posted G-code before it runs: F0 feeds, cutting with the spindle off, H/D numbers that do not match the tool, rapids into the stock zone, moves outside the machine travel, missing program end; plus each tool's Z range, feeds and speeds and the program extents. A review aid, not a simulation.
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": {
"path": "<path>"
},
"name": "check_nc_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of a posted NC file | |
| stock_top_z | No | Top of the stock: rapids below it are flagged | |
| travel_limits | No | Machine travel in program coordinates, e.g. {"x": [-10, 10], "y": [-8, 8], "z": [-20, 0.5]} |