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.
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. |