Generate Diff
generate_diffGenerate and cache a diff of current branch working changes for code review. Call before other review tools to provide the diff.
Instructions
Generate a diff of the current branch working changes and cache it for all review tools. You MUST call this tool before calling any other review tool. Use "unstaged" for working-tree changes not yet staged, or "staged" for changes already added with git add.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "unstaged": working-tree changes not yet staged. "staged": changes added to the index with git add. Default: unstaged. | unstaged |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool completed successfully. | |
| result | No | Successful result payload. | |
| error | No | Error payload when ok is false. |