Create repository file
create_fileCreate a new file in a GitLab repository and commit it to an existing branch with required project, path, branch, content, and commit message.
Instructions
Create a new UTF-8 or base64 repository file and commit it to an existing branch.
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": {
"project": "<project>",
"path": "<path>",
"branch": "<branch>",
"content": "<content>",
"commit_message": "<commit_message>"
},
"name": "create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| branch | Yes | ||
| content | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| encoding | No | text | |
| author_name | No | ||
| author_email | No | ||
| start_branch | No | ||
| commit_message | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |