scan_outgoing
Check drafted responses for personally identifiable information (PII) before sending. Returns a safety verdict, found PII types, and a masked version to prevent data leaks.
Instructions
Output rail: check a drafted response for leaked PII before it's sent.
The output-side complement to the read-side hook. Agents call this on any
response that might contain individual-level data; it enforces the
constitution's no-pii-output rule. Returns a verdict, what was found, and a
masked version safe to send.
Args:
text: The drafted response text to check.
Returns JSON: {safe: bool, found: {type: count}, masked: str}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |