CodeGraph: codegraph_callers
codegraph_callersDiscover which functions call a given symbol in your codebase. Provide the symbol name and project path to return caller functions, filtered by file and limited to a specified maximum.
Instructions
List functions that call . For the full flow, use codegraph_explore.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Narrow to the definition in this file (path or suffix) when several same-named symbols exist (e.g. one UserService per app in a monorepo) | |
| limit | No | Maximum number of callers to return (default: 20) | |
| symbol | Yes | Name of the function, method, or class to find callers for | |
| projectPath | Yes | Absolute path to the project to query (or any directory inside it) — codegraph uses the nearest .codegraph/ index at or above that path. Omit to use this session's default project. Pass it to query a second codebase, or when the server root has no index of its own (e.g. a monorepo where only sub-projects are indexed, so there is no default project). |