search_blobs
Search code and file contents in GitLab projects or groups with full-text queries. Retrieve matching blobs and line context for efficient code discovery.
Instructions
Search code/file contents by full-text query within a project or group. Returns matching blobs with line context. Maps to GET /:scope/:id/search?scope=blobs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Search scope: 'project' (id is numeric Project ID) or 'group' (id is group ID or full path). | |
| id | Yes | Project ID (numeric, as a string) or group ID/path | |
| query | Yes | Search query | |
| ref | No | Branch or commit to search (project scope only). Default: project's default branch. |