Create Or Update File
gitlab_create_or_update_fileCreate or update one file in a GitLab repository by specifying its path, branch, content, and commit message.
Instructions
Create or update one file in 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": {
"file_path": "<file_path>",
"branch": "<branch>",
"content": "<content>",
"commit_message": "<commit_message>"
},
"name": "gitlab_create_or_update_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| content | Yes | ||
| encoding | No | ||
| commit_id | No | ||
| file_path | Yes | ||
| project_id | No | ||
| author_name | No | ||
| author_email | No | ||
| start_branch | No | ||
| previous_path | No | ||
| commit_message | Yes | ||
| last_commit_id | No | ||
| execute_filemode | No |