Open a pull request review
start_reviewOpen a GitHub-style review page for uncommitted changes, commits, branches, or pull requests to collect inline comments, screenshots, and definition links, then return the review URL and ID.
Instructions
Opens a GitHub-style review page in the browser for uncommitted changes, commits on a branch, specific commits, or a whole branch. Shows a syntax-highlighted diff with inline (multi-line) comments, pasted screenshots, go-to-definition links and a per-file viewer. Returns the URL and a reviewId.
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": {
"mode": "<mode>"
},
"name": "start_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | For mode=pr: the pull request number. Omit to use the PR of the current branch. | |
| base | No | Base ref for branch/range/all, e.g. origin/dev. | |
| head | No | Head ref for branch/range. Defaults to HEAD. | |
| host | No | Bind address. Default 127.0.0.1. | |
| mode | Yes | Scope: uncommitted = working tree; branch = commits vs base; commits = explicit list; range = base..head; all = every commit on the branch; pr = a GitHub pull request read through the GitHub CLI. | |
| port | No | Fixed port; 0 picks a free one. | |
| title | No | Optional title in the page header. | |
| branch | No | Branch name shown in the UI (defaults to the checked-out branch). | |
| prRepo | No | For mode=pr: owner/repo when the PR lives in another repository than the checkout. | |
| commits | No | Commit SHAs/refs for mode=commits. | |
| symbols | No | Build the go-to-definition index. Default true. | |
| repoPath | No | Repository path. Defaults to the current working directory. | |
| sessionId | No | OpenCode session that owns the review. Submit sends the fix turn to this session. Defaults to the session the server inherited. | |
| includeStaged | No | Include staged changes (uncommitted). Default true. | |
| includeUntracked | No | Include untracked files (uncommitted). Default true. |