Find all functions called by a given function
Analyzes a function to find all functions it calls, including local, imported, and external dependencies. Use this when refactoring, understanding code complexity, or identifying tight coupling between functions.
/plugin marketplace add nathanvale/side-quest-marketplace/plugin install the-cinema-bandit@side-quest-marketplace<function-name>claude-haiku-4-5-20251001Query PROJECT_INDEX.json to find what functions a given function calls.
bun run ${CLAUDE_PLUGIN_ROOT}/src/cli.ts calls $ARGUMENTS
The CLI will locate the function and analyze what it calls (local, imported, and external).
When reading the function body, identify:
functionName(...)this.method(...) or obj.method(...)Cross-reference with the symbol index to determine:
`functionName` calls N functions:
Local (same file):
- helperFunction (line 45)
- validateInput (line 23)
Imported (from project):
- logger.info (from src/lib/logger.ts)
- createRecord (from src/services/dataverse.ts)
External:
- fs.readFile (node:fs)
- zod.parse (zod)