commit_files
Creates or updates one or more files in a Gitea repository by committing them to a branch with a message via API.
Instructions
Commits file creations or updates to a Gitea repository via API.
files_to_change should be a list of dicts: [{"path": "src/main.py", "content": "print('hello')"}]
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>",
"branch": "<branch>",
"message": "<message>",
"files_to_change": "<files_to_change>"
},
"name": "commit_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| owner | Yes | ||
| branch | Yes | ||
| message | Yes | ||
| files_to_change | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |