Prompt file imported from sareenv/swift-impact-mcp (
.github/prompts/find-symbols.prompt.md). Copyright stays with the author.
Find Symbols
Search for classes, structs, protocols, functions, or enums by name pattern.
Data Source
All searches query app.json — the pre-generated AST file. If not loaded, use load_ast first.
Steps
- Search — Use
search_symbols(query: "X")- Case-insensitive partial match
- Searches all symbol names in app.json
- Filter by type — Add
typeparameter:class,struct,protocol,function,enum,extension
Examples
| Query | Tool Call |
|---|---|
| "Find all ViewModels" | search_symbols(query: "ViewModel") |
| "List all protocols" | search_symbols(query: "", type: "protocol") |
| "Find Manager classes" | search_symbols(query: "Manager", type: "class") |
Output Format
Group results by type:
Classes (N found)
| Name | Inherits | Location |
|---|---|---|
| UserManager | NSObject | Services/UserManager.swift |
Structs (N found)
...
Highlight patterns observed (e.g., "All ViewModels inherit from BaseViewModel")