update_file_content
Create or update files in a GitHub repository. Provide the file's SHA to update existing content, or omit SHA to create a new file.
Instructions
Create or update any file (e.g. README.md) in a GitHub repository using the authenticated token. Provide sha to update an existing file, omit to create a new one.
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>",
"content": "<content>"
},
"name": "update_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | No | ||
| repo | Yes | ||
| path | No | README.md | |
| content | Yes | ||
| message | No | Update file via MCP | |
| sha | No | ||
| branch | No |