Git diff
git_diffReturn unified git diff for workspace changes, including untracked files as additions, so you can verify edits and newly created files before committing.
Instructions
Return unified git diff for workspace changes. Untracked files are included as additions by default, so a newly created file is verifiable here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| paths | No | ||
| staged | No | ||
| unstaged | No | ||
| max_bytes | No | ||
| context_lines | No | ||
| include_untracked | No | Diff untracked files against an empty file so newly created files appear as additions. Applies to the unstaged pass only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| diff | No | ||
| error | No | ||
| files | No | ||
| warnings | No | ||
| truncated | No | ||
| include_untracked | No |