push_files
Push multiple files to a GitHub repository branch in a single atomic commit using the Git Data API, creating blobs, trees, and updating references.
Instructions
Push multiple files to a branch in a single commit using the Git Data API. This creates blobs, a tree, a commit, and updates the branch ref atomically.
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": {
"owner": "<owner>",
"repo": "<repo>",
"branch": "<branch>",
"files": "<files>",
"message": "<message>"
},
"name": "push_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| branch | Yes | Target branch name | |
| files | Yes | Dictionary of file paths to file contents (e.g. {"src/main.py": "print('hello')"}) | |
| message | Yes | Commit message |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |