Restore Cleartext from Surrogate Tokens (ZTDS RFC v1.0)
ztds_restoreRehydrates surrogate tokens back into original cleartext using the local in-memory session table, without modifying or deleting the session.
Instructions
Drop-in ZTDS RFC v1.0 restoration tool. Rehydrates surrogate tokens back into original cleartext using the local in-memory session table without modifying or deleting the session.
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": "ztds_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | UTF-8 text or LLM response containing surrogate tokens to restore. | |
| sessionId | No | Optional session identifier matching the session passed to ztds_sanitize. Defaults to 'default'. | default |