define_custom_rule
Create tenant-specific detection rules using regex patterns to block, escalate, or log prompt injection attempts in AI agent interactions.
Instructions
Define a tenant-specific detection rule. Pro+ only.
pattern: regex (case-insensitive)
action: block | escalate | log
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenant_id | Yes | ||
| rule_name | Yes | ||
| pattern | Yes | ||
| action | No | escalate | |
| api_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |