Create Snippet Tool
create_snippet_toolCreate a new GitLab project snippet from a project ID or path, title, file name, and content, with optional Markdown description and visibility.
Instructions
Create a new snippet in a GitLab project.
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_id": "<project_id>",
"title": "<title>",
"file_name": "<file_name>",
"content": "<content>"
},
"name": "create_snippet_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Snippet title | |
| content | Yes | Snippet content | |
| file_name | Yes | File name for the snippet (e.g., "example.py") | |
| project_id | Yes | Project ID or path | |
| visibility | No | Visibility level (private, internal, public) | private |
| description | No | Snippet description (Markdown) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||