apply_script_patch
Apply exact-text script edits atomically with source-hash and match-count preconditions, plus dry-run, idempotency, verification, and rollback to ensure safe Roblox script changes.
Instructions
Atomically applies exact-text script edits with source-hash and match-count preconditions, dry-run, idempotency, verification, and rollback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Exact script path for a single-script patch. | |
| edits | No | ||
| changes | No | ||
| dry_run | No | Validate and preview without retaining mutations. | |
| idempotency_key | No | Required for live mutation; caller-stable key preventing duplicate application. | |
| expected_source_hash | No | Required live source fingerprint when available. |