SkillsHooksPromptsAgentsPersonasModelsPoliciesToolsTemplatesBundlesCategoriesStart here
← Tools
To toolcommandcodingfs-readexecstable

git-diff

Show changes between commits, branches, or working tree. Read-only.

id tool/git-diffv1.0.0function git_diff

Signature

ParameterTypeRequiredDescription
basestringnoBase ref (commit, branch, tag).
headstringnoHead ref (default: HEAD).
pathsarraynoLimit diff to these paths.
returnsstringUnified 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

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.