add_interception_rule
Add a custom rule to an active 3D printing session to monitor temperature, feedrate, flow, position, or command patterns and apply allow, block, modify, pause, or alert actions when thresholds are met.
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.
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": {
"session_id": "<session_id>",
"name": "<name>",
"trigger": "<trigger>",
"action": "<action>"
},
"name": "add_interception_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable rule name. | |
| action | Yes | Action to take -- one of: allow, block, modify, pause, alert. | |
| message | No | Human-readable explanation shown when rule fires. Default: "". | |
| pattern | No | Regex pattern for pattern_match trigger. | |
| trigger | Yes | Trigger type -- one of: temp_exceeds, temp_below, temp_delta, feedrate_exceeds, flow_anomaly, position_limit, command_blocked, pattern_match, always, layer_change. | |
| priority | No | Rule priority -- one of: critical, high, medium, low. Default: "medium". | |
| threshold | No | Numeric threshold for trigger evaluation. | |
| session_id | Yes | Target session ID. | |
| modify_params | No | Parameter overrides for modify action (e.g. {"F": 3000}). | |
| threshold_max | No | Upper bound for range-based triggers. | |
| blocked_commands | No | List of G/M codes for command_blocked trigger. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||