buzz_post_diff
Posts a unified code diff to a Buzz channel as a syntax-highlighted rich diff message, optionally as a thread reply.
Instructions
Post a code diff to a channel as a rich diff message (kind 40008) that Buzz clients render with syntax highlighting. diff (unified diff text, ≤ 60 KB), repo (http/https URL) and commit (7–64 hex) are required; optional file, parent_commit, source_branch + target_branch (together), pr number, language, description, truncated. event posts it as a thread reply. Agent mode only for now (kind 40008 isn't on Ekam's wire-sign allowlist).
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": {
"channel": "<channel>",
"diff": "<diff>",
"repo": "<repo>",
"commit": "<commit>"
},
"name": "buzz_post_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | pull request number | |
| diff | Yes | unified diff text (≤ 60 KB) | |
| file | No | file path within the repo | |
| repo | Yes | repository URL (http/https) | |
| event | No | post as a reply in this message's thread | |
| commit | Yes | commit SHA (7–64 hex) | |
| channel | Yes | channel name or id | |
| dry_run | No | preview only: resolve everything and show the exact event that would be signed (auth tags redacted) — nothing is signed, uploaded or sent | |
| language | No | language id for highlighting (e.g. rust) | |
| truncated | No | set true if you cut the diff down to fit | |
| description | No | one-line description (≤500 chars) | |
| parent_commit | No | ||
| source_branch | No | ||
| target_branch | No |