restore_file
Restores original values in a redacted file locally using a mapping, without API calls, and reports only the number of placeholders replaced.
Instructions
Put the original values back into a file, locally (no API call). Returns only how many placeholders were restored, not the values.
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": {
"input_path": "<input_path>",
"mapping_path": "<mapping_path>",
"output_path": "<output_path>"
},
"name": "restore_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | ||
| input_path | Yes | File containing placeholders, e.g. an edited redacted file or an LLM answer saved to disk. | |
| output_path | Yes | Where to write the restored file. | |
| mapping_path | Yes | The .map.json written by redact_file. |