plainhub_diff
Show what a commit changed in PlainHub's diff view so users can review file modifications in the browser; optionally limit the view to one file path.
Instructions
Show what a commit changed, in PlainHub's diff view. Use it after a commit when the user wants to review the change in the browser. Hands the saved token to https://app.plainhub.dev unless noAuth is true. Example: {"repo": "octocat/hello-world", "sha": "1a2b3c4", "path": "src/login.js"}
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": {
"repo": "<repo>",
"sha": "<sha>"
},
"name": "plainhub_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | Commit SHA (7-40 hex characters) | |
| path | No | Show only this file | |
| repo | Yes | GitHub repository as owner/name, e.g. octocat/hello-world | |
| noAuth | No | Set to true to not hand the saved token to the page |