validate_gcode_safe
Validates G-code against a specific printer's safety limits, such as PTFE temperature caps and speed limits, to catch unsafe commands before printing.
Instructions
Validate G-code with printer-specific safety limits (PTFE temp caps, speed limits).
Preferred over ``validate_gcode`` when you know the target printer — uses
that printer's safety profile for accurate limits. Without a printer_id,
judges against the floor Kiln holds a printer it cannot identify to.
Args:
commands: G-code commands: a newline-separated string, or a
list of command strings.
printer_id: Optional printer model ID for profile-aware validation.
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": {
"commands": "<commands>"
},
"name": "validate_gcode_safe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | G-code commands: a newline-separated string, or a list of command strings. | |
| printer_id | No | Optional printer model ID for profile-aware validation. Default: "". |