get_function_details
Retrieve function call details: what a function calls and who calls it, with optional transitive chaining up to depth 5.
Instructions
Get comprehensive details about a function, including what it calls and who calls it.
Graph structure: FUNCTION -[HAS_SCOPE]-> SCOPE -[CONTAINS]-> CALL/METHOD_CALL CALL -[CALLS]-> FUNCTION (target)
Returns:
Function metadata (name, file, line, async)
calls: What functions/methods this function calls
calledBy: What functions call this one
For calls array:
resolved=true means target function was found
resolved=false means unknown target (external/dynamic)
type='CALL' for function calls like foo()
type='METHOD_CALL' for method calls like obj.method()
depth field shows transitive level (0=direct, 1+=indirect)
Use transitive=true to follow call chains (A calls B calls C). Max transitive depth is 5 to prevent explosion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function name to look up | |
| file | No | Optional: file path to disambiguate (partial match) | |
| transitive | No | Follow call chains recursively (default: false) |