create_or_update_file
Create or update a file in an existing GitHub repository. Specify owner, repo, path, content, and commit message to add or modify files, with optional SHA and branch for version control.
Instructions
Create or update a file in a 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": {
"owner": "<owner>",
"repo": "<repo>",
"path": "<path>",
"content": "<content>",
"message": "<message>"
},
"name": "create_or_update_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | ||
| path | Yes | ||
| repo | Yes | ||
| owner | Yes | ||
| branch | No | ||
| content | Yes | ||
| message | Yes |