search_token
Find any word in code symbol names, docstrings, or comments. Returns matching file paths and line numbers.
Instructions
Word-level reverse-index search.
Unlike lookup_symbol() which only matches defined symbol names, search_token() finds any word that appears in symbol names, docstrings, or inline comments across the indexed codebase.
Examples: search_token("background") → files containing 'background' in names/docs search_token("validate") → all functions whose docs mention validation search_token("github") → files where GitHub is referenced in comments
Returns a list of {file, line} dicts sorted by file path.
repo_path: optional absolute path to the target repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| word | Yes | ||
| repo_path | No |