Restore original values into a file
stript_restore_fileRestore original values into files containing Stript placeholders, preserving format and writing to an output folder. Returns replacement counts and path without exposing content, free and no evaluation consumed.
Instructions
Use this to restore original values into a file that contains Stript placeholders like [PERSON_1], keeping the file format where possible. Ask the user for the file path, do not ask them to paste file content into the chat. The restored file is written to the Stript output folder and its content never appears in the chat. This tool returns replacement counts and the output path only. Restoring is free, it never consumes an evaluation document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the placeholder-bearing file to restore | |
| project | No | Stript project id the placeholders belong to | |
| output_filename | No | Name for the restored file, defaults to a name derived from the input |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| format | Yes | ||
| warnings | Yes | ||
| exact_restore | Yes | ||
| ambiguous_skipped | Yes | ||
| replacements_made | Yes | ||
| unmatched_placeholders | Yes |