commit_and_push_file
Commit a new or modified file to a GitHub repository with a custom message.
Instructions
Creates or updates a file directly in a GitHub repository.
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_name": "<repo_name>",
"file_path": "<file_path>",
"content": "<content>",
"commit_message": "<commit_message>"
},
"name": "commit_and_push_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | main | |
| content | Yes | ||
| file_path | Yes | ||
| repo_name | Yes | ||
| commit_message | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |