restore_text
Restores original private and sensitive values into placeholder-filled text using a map_id from protect_text or protect_file, running locally without network calls or API keys.
Instructions
Puts the real details back into a text that holds placeholders, using the placeholder map the server kept for a map_id from protect_text or protect_file. It runs locally: no network call and no API key. The result contains the real private and sensitive data, so call it only when you need them. Placeholders that are not in this map (for example from another map_id, or edited) stay as written. The result gives restored_count and not_found_count, so check not_found_count before you use the text. The maps live only in this server's memory: after a restart the map is gone, so protect the text again.
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>",
"map_id": "<map_id>"
},
"name": "restore_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text that holds placeholders such as [PERSON_1]. | |
| map_id | Yes | The map_id returned by protect_text or protect_file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| restored_text | Yes | ||
| restored_count | Yes | Placeholders put back (each occurrence counts). | |
| not_found_count | Yes | Placeholder-shaped tokens such as [PERSON_7] that are not in this map_id's map; left as written. |