search_project_docs
Search project documentation files for keywords or phrases using BM25 ranked search, with fallback to substring matching. Supports search within current project or globally across all projects.
Instructions
Search documentation files for a keyword or phrase. Automatically uses BM25 ranked search when index is available, falls back to grep (substring match) otherwise.
scope="project" (default): current project only, based on CWD. scope="global": search across ALL projects in the doc repository.
Use global scope when the user:
does not specify a project, or says 'all projects', 'everywhere', 'across projects'
references previously saved notes, knowledge, or past decisions
wants to compare how different projects handle the same topic
uses words like 'find everywhere', 'search everything', 'all docs'
asks in Korean: '전체', '모든 프로젝트', '다른 프로젝트에서는'
Use project scope (default) when the user asks about the current project context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default: 20) | |
| mode | No | Override search mode. Options: "grep" (regex-only search, skips BM25 index). Omit for default hybrid search. | |
| query | Yes | Search query | |
| scope | No | Search scope: 'project' (default, current project only) or 'global' (all projects). Omit or set to 'project' for current project. |