gitee_update_file
Update a file in a Gitee repository by providing its path, base64-encoded new content, commit message, and the SHA of the file being replaced. Optionally specify branch, author, and committer details.
Instructions
Update an existing file
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>",
"message": "<message>",
"content": "<content>",
"sha": "<sha>"
},
"name": "gitee_update_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner (user/org/enterprise path) | |
| repo | Yes | Repository path name | |
| path | Yes | File path | |
| message | Yes | Commit message | |
| content | Yes | Base64-encoded new content | |
| sha | Yes | SHA of the file being replaced | |
| branch | No | Branch name | |
| author_email | No | Author email | |
| author_name | No | Author name | |
| committer_email | No | Committer email | |
| committer_name | No | Committer name |