validate_gcode_safe
Check G-code against printer-specific safety limits, including PTFE temperature caps and speed restrictions, using a printer profile for accurate validation. Falls back to conservative generic defaults when no printer is specified.
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 separated by newlines.
printer_id: Optional printer model ID for profile-aware validation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | ||
| printer_id | No |