pii_restore
Restore plaintext by substituting REDACTED placeholders from a PII session's mapping. Calling this tool authorizes viewing plaintext.
Instructions
Restore plaintext in a text by substituting REDACTED placeholders from a PII session's mapping (Step 100, ADR-100). Explicit authorization semantics: calling this tool is the authorization to view plaintext. Returns ok:false with an error when the session does not exist, the mapping cannot be decrypted (missing or wrong key), or no encryption key is configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text containing {{REDACTED:...}} placeholders | |
| confirm | Yes | mandatory acknowledgement that this call mutates state; the tool writes nothing unless it is true (D5-08, D5-12) | |
| session_id | Yes | PII session id, e.g. pii_abc123 |