Search Notes (Comments)
search_notesSearch issue and merge request comments in GitLab using full-text search, with scope options for global, project, or group.
Instructions
Full-text search across issue and merge request comments. Scope can be global, a project, or a group. NOTE: on self-hosted GitLab, the "notes" search scope requires Advanced Search (Elasticsearch) to be enabled — without it, this endpoint returns an error. search_gitlab does NOT search note bodies; this tool does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | Yes | Search term. Trimmed; empty rejected. | |
| scope | No | Search scope. Default global. | global |
| projectPath | No | Required when scope=project. Full project path. | |
| groupPath | No | Required when scope=group. Full group path. | |
| perPage | No | Results per page. Default 20. | |
| page | No | Page number. Default 1. | |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) |