baron_scm_write
Create branches and manage pull requests: open, comment, mark ready, and merge. Handles merge declines as failures so you know the true state.
Instructions
Change source-control state. ops: branch_create (name, optional fromBranch — idempotent); pr_create (title, sourceBranch, optional targetBranch/body/draft/assignees/autoComplete, plus linkedIssueKey and linkedIssueRelation — closes finishes the item on merge, relates only references it); pr_thread (pullRequestId, body); pr_ready (pullRequestId) — take it out of draft; pr_merge (pullRequestId, optional strategy/deleteSourceBranch). A provider that declines a merge surfaces as MERGE_FAILED rather than a false success.
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_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Which operation to perform. | |
| body | No | ||
| name | No | ||
| draft | No | ||
| title | No | ||
| strategy | No | ||
| assignees | No | ||
| fromBranch | No | ||
| autoComplete | No | ||
| sourceBranch | No | ||
| targetBranch | No | ||
| pullRequestId | No | ||
| linkedIssueKey | No | ||
| deleteSourceBranch | No | ||
| linkedIssueRelation | No |