scrub_unmask_text
Restores original sensitive values into an LLM response using the local token_map to reverse masking before returning text to the user.
Instructions
Restores original sensitive values into an LLM response using the local token_map.
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": {
"text": "<text>",
"token_map": "<token_map>"
},
"name": "scrub_unmask_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The LLM response containing masked tokens like {{EMAIL_1}} | |
| token_map | Yes | The token map dictionary returned during masking |