gitlab_get_user_snippets
Retrieve all personal and project code snippets created by a user, including metadata, content, and visibility settings. Manage code libraries, knowledge sharing, and developer portfolios efficiently.
Instructions
List all personal and project snippets created by a user
Find all code snippets created by the specified user across personal and project scopes, with content and metadata.
Returns snippet information with:
- Snippet details: title, description, visibility
- Content info: file names, language detection
- Usage context: project association, sharing scope
- Metadata: creation date, update history
- Access info: permissions, visibility settings
Use cases:
- Personal code library management
- Knowledge sharing and documentation
- Code reuse and template management
- Developer portfolio and examples
Parameters:
- user_id: Numeric user ID
- username: Username string (use either user_id or username)
- scope: Snippet scope (personal, project, all)
- visibility: Filter by visibility (private, internal, public)
- language: Filter by programming language
- sort: Sort order (created, updated, name)
- per_page: Results per page (default: 20)
- page: Page number (default: 1)
Example: Get user's public snippets
Input Schema
Name | Required | Description | Default |
---|---|---|---|
page | No | Page number for pagination Type: integer Range: ≥1 Default: 1 Example: 3 (to get the third page of results) Note: Use with per_page to navigate large result sets | |
per_page | No | Number of results per page Type: integer Range: 1-100 Default: 20 Example: 50 (for faster browsing) Tip: Use smaller values (10-20) for detailed operations, larger (50-100) for listing | |
username | Yes | Username string |