airlock_rehydrate
Restore <ENTITY_N> placeholders in an in-memory string to their original raw values from the session vault after dehydration or scrubbing.
Instructions
Restore <ENTITY_N> placeholders in an in-memory string to their original values from the session vault.
Purpose & Behavior:
Looks up each `<ENTITY_N>` token in `text` (matching case-insensitively and tolerating extra inner
whitespace such as `< api_key_1 >`) against the current in-memory session vault and substitutes the
original raw string. Tokens that do not exist in the vault are left unchanged. Does not modify the vault.
When to Use:
- Use after `airlock_dehydrate` or `airlock_scrub_text` when an in-memory payload needs its original
values restored.
- WARNING: The response contains raw unmasked secrets. Never call this on `.env` or credential file
contents that should stay hidden from model context. Use `airlock_write_file` instead to restore
secrets directly onto disk without returning them to the agent.
Returns:
A JSON-serializable object with `{"rehydrated_text": str, "restored_count": int}`.
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": "airlock_rehydrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text containing <ENTITY_N> placeholders (e.g., <API_KEY_1>, <PERSON_1>) generated earlier in the current session by airlock_dehydrate, airlock_scrub_text, or airlock_read_file. |