file.patch
Apply a text replacement only if the file's SHA-256 matches expected, avoiding stale edits. Relative paths use the task worktree; absolute paths use host OS.
Instructions
Patch an existing file if its SHA-256 still matches. Relative paths use the Task worktree; absolute paths use the host OS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| task_id | Yes | ||
| new_text | Yes | ||
| old_text | Yes | ||
| expected_sha256 | Yes |