github_create_branch_commit
[WRITE] Commit changes to one or more files as a single commit on a branch (the branch is created from the default branch if it doesn't exist). Refuses the repository's default branch: commit to a new branch, then open a pull request. Requires confirm:true.
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>",
"branch": "<branch>",
"message": "<message>",
"files": "<files>"
},
"name": "github_create_branch_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Branch to start a NEW branch from (optional; default branch) | |
| repo | Yes | Repository as owner/name, e.g. "octocat/hello-world" (a github.com URL works too) | |
| files | Yes | The files this commit writes or deletes | |
| branch | Yes | Branch to commit to, e.g. fix/login-timeout. Not the default branch. | |
| confirm | No | Must be true to actually do this on GitHub. Omit/false to refuse (safety gate). | |
| message | Yes | Commit message |