Guard: check text before acting on it or sending it
guard_checkCheck content for prompt injection (inbound) or leaked secrets and personal data (outbound) before an agent acts on it or sends it. Returns allow / warn / block, the findings, a redacted copy for outbound secrets, and an Ed25519-signed receipt anchored on-chain, which proves the check happened. Privi does not store the text. Free for 1,000 checks a month with an organization key; otherwise 1 cent per check in USDC via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The content to check: a web page, email, document or tool result the agent is about to act on (inbound), or what the agent is about to send (outbound) | |
| source | No | Optional label for the receipt, e.g. the page URL or tool name | |
| direction | No | inbound = untrusted content coming in (prompt injection, hidden instructions); outbound = content going out (API keys, card numbers, data smuggled in URLs) | inbound |