search_docs
Find documentation in available docsets using regex patterns. Returns file path, line number, and context lines so you can navigate directly to the information you need.
Instructions
Search for documentation in available docsets. Returns file path, line number, matched content, and surrounding context lines.
đ AVAILABLE DOCSETS: ⢠mcp-typescript-sdk (MCP TypeScript SDK) - Official TypeScript SDK for Model Context Protocol ⢠vitepress-docs (VitePress Documentation) - VitePress static site generator documentation ⢠local-docs (Local Documentation) - Local documentation: ./docs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | The search pattern (regex) to find in the documentation. Supports full regex syntax (e.g. "log.*Error", "function\s+\w+", "auth|login"). Returns file path, line number, matched line, and surrounding context lines. â ď¸ IMPORTANT: This is a regex pattern, NOT a list of keywords. Spaces are literal (match a space character). To search for multiple alternative terms, use | (pipe): e.g. "auth|login" matches lines containing either "auth" OR "login". | |
| docset_id | Yes | Choose the docset to search in. | |
| context_lines | No | Number of lines to show before and after each matching line (default: 2). Set to 0 for just the matching lines, or increase for more context. |