git.diffReads a local git worktree's unified diff for the unstaged, staged, or head scope, bounded and truncation-flagged.
| Field | Value |
|---|---|
| Class | local_observation |
| Owner | sidecatd.git-effects |
| Input schema | sidecat.git_diff_request.v0 |
| Output schema | sidecat.git_diff_response.v0 |
{
"repo": "/path/to/git/worktree",
"schema": "sidecat.git_diff_request.v0",
"scope": "unstaged"
}