Get Git Diff
getGitDiffRetrieve a git diff for a specific workspace and app, optionally narrowing by commit SHA or file path, to review code changes. Large patches are flagged with truncated: true.
Instructions
With no sha, diffs the working tree. path narrows it to one file. Large patches come back with truncated: true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceSlug": "<workspaceSlug>",
"appSlug": "<appSlug>"
},
"name": "getGitDiff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| sha | No | ||
| path | No | ||
| region | No | ||
| appSlug | Yes | ||
| workspaceSlug | Yes |