Find a declaration (LayerMap)
project_search_mapFind where functions, classes, or types are declared by searching names, paths, or docs, so you can trace callers next.
Instructions
Use this to find where a function, method, class or type is declared, by name or by words in its name, path or documentation, before exploring its callers with project_explore_map. Find declarations and files whose names, paths or source documentation match query terms. ANY (default) matches any term, ALL requires every term, LITERAL matches the exact text. Results are ranked by relevance and grouped by file with the declaration name, kind, 1-based line range and matched fields. Zoom into a result with project_explore_map({path,name}) or read its line range in the file. This is not a full-text search and does not prove absence; search the source text itself for exact text. Continue with offset and unchanged conditions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| kinds | No | ||
| query | Yes | ||
| offset | No | ||
| matchMode | No | ANY matches one or more query terms; ALL requires every term; LITERAL matches the complete text literally. | ANY |
| maxResults | No |