analyze_text
Inspect text locally to identify PII, secrets, and credentials, returning counts and optional findings without altering or transmitting the text.
Instructions
Inspect text locally and report detected sensitive content without producing sanitized output.
Use this when you need to understand what PII, secrets, or credentials are present (counts, entity types, and, with review/debug modes, positions) but do not need redacted text for transmission. The original text is not modified and no sanitized representation is returned. For a policy-approved, ready-to-send result use prepare_for_external_ai; for a sanitized file use create_safe_copy; for reversing a prior local session use restore_text.
Returns a JSON object with 'status' ('ok', 'review_required', or 'blocked'), 'policy', 'policy_version', 'policy_digest', 'counts' (entity-type tallies), and, when response_mode is 'review' or 'debug', a 'findings' list. 'debug' additionally returns 'debug_details'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Free text to inspect locally for sensitive content. Processing is on this machine only; the original text is never modified or transmitted. | |
| policy | No | Named analysis policy controlling which detectors and entity types apply. Defaults to 'default'. Common values include 'default'; other policies may be registered in your environment. An unknown name returns a policy_not_found error. | default |
| response_mode | No | Level of detail returned. 'minimal' returns only status and entity-type counts; 'review' additionally returns a 'findings' list with spans and entity types; 'debug' additionally returns 'debug_details' (only when debug responses are enabled). Defaults to 'minimal'. | minimal |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||