composer_edit_file
Replaces exact text in a project file. old_string must occur exactly once unless replace_all is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path relative to the project, e.g. gen/shot1.mp4. | |
| new_string | Yes | Replacement text, different from old_string. | |
| old_string | Yes | Exact text to replace, without read_file's line-number prefix; whitespace must match. It must occur once unless replace_all is set. | |
| project_id | Yes | project_id from composer_project_create. | |
| replace_all | No | Replace every occurrence of old_string. |