agent_pull_request
For a chat started with repo: commit its changes, push its branch and open a GitHub pull request with the sandbox's GIT_TOKEN. Returns its url. Wait for the chat's turn to finish first.
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": {
"sandbox_id": "<sandbox_id>",
"chat_id": "<chat_id>"
},
"name": "agent_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | pull request description | |
| draft | No | open it as a draft | |
| title | No | title and commit message; default the chat's first message | |
| chat_id | Yes | the turn id agent_ask returned when it started the chat | |
| sandbox_id | Yes | sandbox id of an agent template |