patch_js_objects
Execute targeted string replacements inside JavaScript object bodies to update values without rewriting entire objects. Each edit specifies a target object, old string, new string, and optional replace-all behavior.
Instructions
Make targeted string replacements in JS object bodies without rewriting them.
Each edit is `{"target_id", "old", "new", "replace_all"?}` where `target_id`
is a JS object id. `old` is matched literally; if it occurs more than once the
edit fails unless `replace_all` is true (then every occurrence is replaced).
Per-edit result reports `replacements` (count) or an `error` (target not
found / `old` not found / ambiguous match).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes |