codeSymbol
Locates a symbol's declaration and references in a remote GitHub repository, returning its signature, code block, and reference lines for code navigation.
Instructions
Find a symbol declaration and references in a remote GitHub repo. Uses GitHub code search + raw files; returns signature, code block, and reference lines. Requires GITHUB_TOKEN. Example: repo="fastapi/fastapi", symbol="Depends".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional branch/tag/commit for raw file fetch | |
| kind | No | Optional declaration kind filter | |
| repo | Yes | GitHub repository: owner/repo or https://github.com/owner/repo | |
| symbol | Yes | Exact symbol name (class/function/interface/type/const) | |
| maxResults | No | Max definitions to return (1-10, default 5) |