reveal_text
Restore original private data from RAM-only session placeholders in final AI responses before display, supporting both batch and streaming output.
Instructions
STEP 3: Call this last. You MUST pass your final generated response through this tool to restore tokens (e.g., [EMAIL_1]) back with the original private data from the local volatile RAM-only session map before showing it to the user. Supports both standard batch mode and real-time streaming mode (stream: true).
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>"
},
"name": "reveal_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The AI generated response (or streaming chunk) containing placeholders to restore. | |
| flush | No | Optional. When true in streaming mode, flushes any remaining buffered text at EOF. | |
| stream | No | Optional. When true, uses the sliding-window StreamingDetokenizer to prevent token splitting across chunk boundaries. | |
| session_id | No | Optional session ID matching the sanitize_text call for multi-agent isolation. Defaults to 'default'. |