Open pull request
open_prPush the session branch to the user's GitHub repository and open a pull request against the branch the session was started from (the project's branch when the session began; the result reports it as baseBranch). Commits any uncommitted sandbox changes first. Visible to everyone with access to the repo — only call when the user explicitly asks to open a PR. Title/body default to the edit summaries. If this session already has an open pull request, pushes the new changes to it instead of opening another.
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": {
"sessionId": "<sessionId>"
},
"name": "open_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Pull request description in Markdown (up to 8000 characters). Omit to use the session's edit summaries. | |
| title | No | Pull request title (1-120 characters). Omit to use the session's edit summaries. | |
| context | No | A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| sessionId | Yes | The ronda session id, from open_session or list_sessions. | |
| expectedState | No | Set by ronda cards; omit. The state of the session's code the card showed; a different current state refuses the call. | |
| expectedPrFence | No | Set by ronda cards; omit. The pull request state the card showed; a different current state refuses the call. |