replace_in_file
Replace an exact text snippet in a file on a WISP game server with optimistic concurrency. Uses a checksum to ensure the file hasn't changed, preventing whole-file model output.
Instructions
Replace an exact snippet server-side with optimistic concurrency, avoiding whole-file model output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| path | Yes | ||
| server_id | No | ||
| expected_count | No | ||
| expected_sha256 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||