edit_directory_script
Apply deterministic edits to a Roblox BedWars Creative Lua script, replacing, appending, or prepending code, then return a unified diff with atomic writes and backups.
Instructions
Apply a deterministic edit to an outside project script and return a unified diff.
Context: Use replace old with new, replace: old => new, append: code, prepend: code, or a fenced Lua block. Unsupported instructions fail without changes. Changed files are written atomically and retain a .bak backup; no-op edits preserve the existing backup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | No | ||
| directory | Yes | ||
| file_name | Yes | ||
| instructions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||