submit_review
Submit an approve or request_changes decision for a review thread, binding approvals to the evidence packet shown and sending request_changes back for rework with a required note.
Instructions
Submit a review decision as the caller (G5): approve or request_changes. The reviewer is you; an owner/assignee may submit but it will not count toward the requirement (separation of duties). request_changes on an in_review thread, from its owner or a reviewer whose approval would count, sends it back to open for rework: it is claimable again, earlier approvals are dismissed, and your note appears in its context as change_requests. request_changes needs a note saying what to change; approve may carry one. approve also needs evidence_root, the root from get_review_packet of what you were shown: it is refused when the thread was handed over again or changed since, and only an approval bound to the latest packet counts toward the close. Every verdict appends a review_submitted event (the note stays in the review history), and a request_changes notifies the thread's last worker. Re-submitting changes your decision. Requires thread:transition.
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": {
"thread_id": "<thread_id>",
"decision": "<decision>"
},
"name": "submit_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | what to change, required on request_changes; optional on approve | |
| decision | Yes | ||
| head_sha | No | optional full commit SHA of the change head you reviewed; refused as a conflict when the change has moved since | |
| thread_id | Yes | ||
| evidence_root | No | the evidence_root from get_review_packet you are deciding on, required on approve |