Gitea: Update file
gitea_update_fileUpdate an existing file in a Gitea repository using the current file SHA to detect conflicts and prevent overwriting concurrent changes.
Instructions
[UNIFIED] Update an existing file in a Gitea repository. Requires current file SHA for conflict detection.
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": {
"site": "<site>",
"owner": "<owner>",
"repo": "<repo>",
"path": "<path>",
"content": "<content>",
"sha": "<sha>",
"message": "<message>"
},
"name": "gitea_update_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | ||
| path | Yes | ||
| repo | Yes | ||
| site | Yes | ||
| owner | Yes | ||
| branch | No | ||
| content | Yes | ||
| message | Yes | ||
| new_branch | No | ||
| content_is_base64 | No |