add_interception_rule
Add custom interception rules to active 3D printing sessions to control print behavior based on triggers like temperature, speed, or patterns.
Instructions
Add a custom interception rule to an active session.
Args:
session_id: Target session ID.
name: Human-readable rule name.
trigger: Trigger type -- one of: temp_exceeds, temp_below,
temp_delta, feedrate_exceeds, flow_anomaly, position_limit,
command_blocked, pattern_match, always, layer_change.
action: Action to take -- one of: allow, block, modify, pause, alert.
priority: Rule priority -- one of: critical, high, medium, low.
threshold: Numeric threshold for trigger evaluation.
threshold_max: Upper bound for range-based triggers.
blocked_commands: List of G/M codes for command_blocked trigger.
pattern: Regex pattern for pattern_match trigger.
modify_params: Parameter overrides for modify action (e.g. {"F": 3000}).
message: Human-readable explanation shown when rule fires.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| action | Yes | ||
| message | No | ||
| pattern | No | ||
| trigger | Yes | ||
| priority | No | medium | |
| threshold | No | ||
| session_id | Yes | ||
| modify_params | No | ||
| threshold_max | No | ||
| blocked_commands | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||