Find symbols by name. Returns list of symbol dicts.
(query: str, limit: int = 20, file: str | None = None)
| 415 | |
| 416 | |
| 417 | def search(query: str, limit: int = 20, file: str | None = None): |
| 418 | """Find symbols by name. Returns list of symbol dicts.""" |
| 419 | state = _load_state() |
| 420 | params = {"q": query, "limit": limit} |
| 421 | if file: |
| 422 | params["file"] = file |
| 423 | result = _safe_get(state, "/symbols/search", params) |
| 424 | print(json.dumps(result, indent=2)) |
| 425 | return result |
| 426 | |
| 427 | |
| 428 | def impl_(symbol: str, file: str): |
nothing calls this directly
no test coverage detected