baron_scm_read
Check pull request status, review decisions, mergeability, and CI checks, or find the latest PR for a branch to detect drift before creating or merging.
Instructions
Read source-control state. ops: pr_status (pullRequestId) → normalized state, review decision, mergeability and a checks rollup; pr_for_branch (sourceBranch, optional state — open default / merged / closed / all) → the most recent matching PR or null. open is the idempotency probe before creating one; merged is the drift probe.
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": {
"op": "<op>"
},
"name": "baron_scm_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Which operation to perform. | |
| state | No | ||
| sourceBranch | No | ||
| pullRequestId | No |