scan_content
Paid Untrusted Content Security Layer ($0.005 USDC on Base). Scan untrusted text, HTML, Markdown, email, document text, API responses, and tool outputs before your agent adds them to context, follows their instructions, or acts. Returns risk score, risk categories, recommendation, and sanitized plain text when possible. Bounded deterministic local scanning; no external LLM or provider call. Maximum 100000 characters.
Agent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| content | Yes | ||
| content_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| next | No | ||
| safe | Yes | ||
| error | No | ||
| cached | Yes | ||
| result | No | ||
| status | No | ||
| payment | No | ||
| sources | Yes | ||
| agent_ux | No | ||
| degraded | Yes | ||
| risk_level | Yes | ||
| risk_score | Yes | ||
| scanned_at | Yes | ||
| recommendation | Yes | ||
| detected_patterns | Yes | ||
| requested_actions | Yes | ||
| sanitized_content | Yes | ||
| credential_theft_risk | Yes | ||
| data_exfiltration_risk | Yes | ||
| tool_manipulation_risk | Yes | ||
| instruction_override_risk | Yes | ||
| prompt_injection_detected | Yes |