file_patch
Replace a unique text block in a project file with new content, failing safely if the match is missing or ambiguous.
Instructions
Replace exactly one matching text block in a UTF-8 project file. Fails when the match is missing or ambiguous.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| newText | Yes | ||
| oldText | Yes | ||
| projectId | Yes |