search_token
Find any word in symbol names, docstrings, or comments across the codebase. Returns matching file and line locations, covering terms that standard symbol lookup misses.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"word": "<word>"
},
"name": "search_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| word | Yes | ||
| repo_path | No |