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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"text": "<text>",
"confirm": "<confirm>"
},
"name": "pii_restore"
}
}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 |