show_code_diff
Display unified code differences for files in Jules sessions to review specific changes after code review context analysis.
Instructions
Show the actual code diff for files from a Jules session. Returns unified diff format that can be displayed to users. Use after get_code_review_context to drill into specific file changes. Can optionally show diff from a specific activity (use activity IDs from get_code_review_context output).
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": {
"sessionId": "<sessionId>"
},
"name": "show_code_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | The Jules session ID to get diff from. | |
| file | No | File path to show diff for. Omit to get all diffs (may be large). | |
| activityId | No | Optional activity ID to get diff from a specific activity instead of the session outcome. Use activity IDs shown in get_work_in_progress output. |