capture_diff
Render a git diff with color-coded additions and deletions for PR reviews, migration guides, and change documentation. Parses unified diff format showing file headers, line numbers, and context lines.
Instructions
Render a git diff with color-coded additions (green) and deletions (red). Parses unified diff format (output of git diff, diff -u). Shows file headers, line numbers, and context lines. Ideal for PR reviews, migration guides, and change documentation. Maximum input 500KB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | Diff content in unified diff format (e.g., output of 'git diff' or 'diff -u'). Must include file headers (---/+++) and hunks (@@ -... +... @@). Maximum 500KB. | |
| output | No | Output filename (default: auto-generated as 'diff-<timestamp>.png' or '.jpeg' based on SNAPMCP_FORMAT). Include extension to override format. |