Request a review with local tests
request_review_with_contextLike request_review, but also sends excerpts of the tests of the files the pull request changes, read from your local checkout, so the review sees them. Only when local_context_status says enabled. Push first: head_sha is the commit you read at, and if the pull request's head is another commit nothing is queued (head_moved). For each changed source file, up to 3 test files named after it (test_foo.py, foo_test.go, foo.test.ts, foo.spec.js, FooTest.java, or foo.* in a tests directory); each item is {path, start_line: 1, end_line, sha: head_sha, text}: the file's first lines exactly as committed, at most 200 lines an item, 2000 lines and 150000 bytes in all. Never send secrets or files that are not tests; MergeSafe checks every excerpt against the commit.
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>",
"pr_number": "<pr_number>",
"head_sha": "<head_sha>",
"evidence": "<evidence>"
},
"name": "request_review_with_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | The repository as "owner/name". | |
| tier | No | Optional review level: essential, strong or ultra (budget, the older name, still works and is what responses say). Leave it out to use the repository's own setting. | |
| addons | No | Optional add-ons; leave out to use the repository's own setting. | |
| evidence | Yes | The test excerpts, as the tool's description lists. | |
| head_sha | Yes | The commit read at (40 hex). | |
| pr_number | Yes | The pull request number. |