get_snippet
Fetches a GitLab snippet's details and raw code content by ID. Use it to retrieve specific snippet metadata or download the source file for a given project.
Instructions
Get code snippet details and raw file content by snippet ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | Yes | If true, also fetches the raw code content of the snippet | |
| 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 snippet ID |