intercept_gcode_command
Evaluate each G-code command against interception rules to decide the appropriate action before sending to the printer.
Instructions
Evaluate a G-code command against interception rules.
This is the core tool. Pass each G-code command through this
before sending to the printer. The result tells you whether to
ALLOW, BLOCK, MODIFY, PAUSE, or ALERT.
Args:
session_id: Active interception session ID.
command: Raw G-code command string (e.g. "M104 S280", "G1 X10 F6000").
Returns the interception result including action, modified command
(if applicable), triggered rules, and human-readable reasons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||