List symbols. Optionally filter by file and/or kind.
(file: str | None = None, kind: str | None = None, limit: int = 100)
| 461 | |
| 462 | |
| 463 | def symbols(file: str | None = None, kind: str | None = None, limit: int = 100): |
| 464 | """List symbols. Optionally filter by file and/or kind.""" |
| 465 | state = _load_state() |
| 466 | params = {"limit": limit} |
| 467 | if file: |
| 468 | params["file"] = file |
| 469 | if kind: |
| 470 | params["kind"] = kind |
| 471 | result = _safe_get(state, "/symbols", params) |
| 472 | print(json.dumps(result, indent=2)) |
| 473 | return result |
| 474 | |
| 475 | |
| 476 | def peek_file(file: str, start: int = 0, end: int = 50): |
nothing calls this directly
no test coverage detected