List Snippets Tool
list_snippets_toolRetrieve a paginated list of code snippets for a specified GitLab project. Use project ID or path with optional page and per-page parameters.
Instructions
List snippets for 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>"
},
"name": "list_snippets_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| per_page | No | Results per page, max 100 (default: 20) | |
| project_id | Yes | Project ID or path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||