repo_apply_patch
Apply a validated unified text patch atomically to multiple repository files, preventing partial multi-file edits if validation fails.
Instructions
Atomically apply one validated unified text patch.
One patch may contain multiple repository text-file targets. All targets are validated before mutation and Git applies the patch as one locked operation, so a target failure does not leave a partial multi-file edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | ||
| branch | Yes | ||
| applied | Yes | ||
| targets | Yes | ||
| warning | Yes | ||
| truncated | Yes | ||
| repository | Yes | ||
| result_hash | Yes | ||
| hidden_files | Yes |