create_snippet
Creates a new code snippet in a GitLab project; requires project ID, title, file name, content, and visibility.
Instructions
Create a new code snippet in a GitLab project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Snippet title summarizing the snippet | |
| content | Yes | Code or text content of the snippet | |
| file_name | Yes | File name with extension (e.g. 'auth-interceptor.js' or 'setup.sh') | |
| project_id | Yes | Project numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically. | |
| visibility | Yes | Snippet visibility level | internal |
| description | No | Optional description of the snippet |