Replace In File (Gated)
sdlc_replace_in_fileReplace exact strings in files with occurrence verification. Uses dry-run by default and requires confirmation to apply changes, with backup and audit logging.
Instructions
Exact-string replacement with occurrence verification. Dry-run unless confirm=true; backs up and audits on apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| path | No | Target directory. Filesystem roots are rejected; UNC/network paths require an explicit environment override. | |
| dryRun | No | Explicit dry-run switch. Mutation only occurs when dryRun is false AND confirm is true. | |
| confirm | No | Approval gate. Without confirm=true the call is a dry-run and changes nothing. | |
| replace | No | ||
| filePath | Yes | File to act on, relative to the target directory (absolute paths contained by it are accepted). | |
| allowSensitive | No | ||
| expectedOccurrences | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| changeId | No |