vicem_rehydrate
Restores secret-redacted source code for a skeletonized function, method, or class from the ledger, replacing { ... } placeholders so you can inspect or edit symbols listed in the baton.
Instructions
Restores the exact, secret-redacted source code of a skeletonized function, method, or class from .vicem/ledger.json so you never write { ... } placeholders. Use after vicem_read_baton whenever you need to inspect or edit a symbol listed in .vicem/BATON.md Section 6 (Diet Ledger); do not use to read the full baton (vicem_read_baton), build a baton (vicem_create_baton), or check diff safety (vicem_check_guard). Parameter semantics: file_path (repo-relative POSIX path validated against path traversal) and symbol_name must match a ledger entry (camelCase filePath/symbolName aliases also accepted). Read-only lookup (no auth, rate limits, or disk writes): returns the redacted source code (isError=false), prepending a "// ⚠️ [STALENESS DRIFT WARNING]" comment if git HEAD or the on-disk file changed since snapshot. If the symbol is missing or was not skeletonized, returns isError=true with a not-found message so you can read the file directly.
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": {
"file_path": "<file_path>",
"symbol_name": "<symbol_name>"
},
"name": "vicem_rehydrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Repository-relative POSIX file path as listed in .vicem/BATON.md Section 6 (e.g., "src/auth.ts" or "vicem.mjs"). | |
| symbol_name | Yes | Exact function, method, or class name to restore from .vicem/ledger.json (or comma-separated names like "parseCFamily,classifyCBlockHeader" for batch rehydration). | |
| include_callees | No | When true, also restores 1-hop same-file functions called by symbol_name in a single round-trip. |