create_pr_for_thread
Open or update a pull request to apply code fixes for a feedback thread. Commits accumulate on one branch per repo; a new branch starts if the PR is merged or closed.
Instructions
Open a pull request for a fix — or, more usually, add it to the one the repo already has. One working branch per repo accumulates every fix as its own commit, and the PR body keeps a table of them. If that PR was merged or closed, a fresh branch is started automatically. Use get_element_context first to find the file, then pass the full new contents of each file you changed.
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": {
"repo": "<repo>",
"thread_id": "<thread_id>",
"description": "<description>",
"files": "<files>"
},
"name": "create_pr_for_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Owner/name, e.g. "acme/web". | |
| files | Yes | Every file you changed. They land as one atomic commit. | |
| thread_id | Yes | The thread this fix answers. | |
| base_branch | No | What to branch from. Defaults to "main". | |
| branch_name | No | Override the branch name. Rarely needed. | |
| description | Yes | One line for the PR table, e.g. "larger checkout button". | |
| revision_of | No | Set to a thread id when this is a revision — it gets its own revision-* branch rather than joining the accumulating one. |