update_snippet
Modify an existing code snippet's content, title, file name, description, or visibility settings in a GitLab project, enabling agents to edit stored code directly by snippet ID.
Instructions
Update an existing code snippet's content, title, file name, or visibility
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Updated snippet title | |
| content | No | Updated code or text content | |
| file_name | No | Updated file name | |
| project_id | Yes | Project numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically. | |
| snippet_id | Yes | Numeric ID of the snippet to update | |
| visibility | No | Updated visibility level | |
| description | No | Updated description |