git-diff
Show changes between commits, branches, or working tree. Read-only.
id tool/git-diffv1.0.0function git_diff
Signature
| Parameter | Type | Required | Description |
|---|---|---|---|
base | string | no | Base ref (commit, branch, tag). |
head | string | no | Head ref (default: HEAD). |
paths | array | no | Limit diff to these paths. |
| returns | string | Unified diff output. |
Tool definition for the model
{
"name": "git_diff",
"description": "Run `git diff` and return the unified diff.",
"input_schema": {
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "Base ref (commit, branch, tag)."
},
"head": {
"type": "string",
"description": "Head ref (default: HEAD)."
},
"paths": {
"type": "array",
"description": "Limit diff to these paths."
}
},
"required": []
}
}Used by
- agent/code-reviewer — Code Reviewer
Author convergent-systems-key. Source convergent-systems-co/agent-atoms (original ↗). License Apache-2.0. Re-typed from tool-definition by scripts/migrate-policy-tool.py.