update_file_tool
Update an existing file in a GitLab repository by providing project, branch, file path, new content, and commit message. Execute changes through the MCP server.
Instructions
Update an existing file in a GitLab repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Branch to commit to | |
| content | Yes | New file content | |
| encoding | No | Content encoding - "text" or "base64" (default: text) | text |
| file_path | Yes | Path to the file | |
| project_id | Yes | Project ID or path | |
| commit_message | Yes | Commit message |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||