validate_gcode_safe
Validate G-code against a specific printer's safety limits for temperature and speed, falling back to conservative defaults when no printer profile is provided.
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,
falls back to conservative generic defaults.
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: "". |