Ask a Capy thread to open a pull request
capy_open_prAsk an agent to commit work and create a pull request. Retrieve the PR URL by calling capy_wait or capy_status after.
Instructions
Ask the agent in a thread to commit its work and open a pull request, then report any PRs on the thread.
This is a convenience wrapper around capy_message: the Capy API has no endpoint that creates a PR directly, so the agent is instructed to do it. The PR will not exist the instant this returns. Call capy_wait or capy_status afterwards to pick up the PR URL.
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>"
},
"name": "capy_open_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | Thread id, e.g. "jam_123". | |
| instructions | No | Extra guidance for the PR, such as the title, the base branch, or whether it should be a draft. |