Safe Content Tool
safe_content_toolSanitize untrusted inline content using three-layer detection to block prompt injection. Fails when injection is detected.
Instructions
Sanitize inline content with all three layers. Fails if injection detected.
Always untrusted — runs L1 + L2 + L3 detection on every call. Uses SHA-256 content hash for blocklist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Raw text content to sanitize | |
| content_type | No | MIME type — text/plain (default), text/html, or text/markdown | text/plain |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||