find_callees
Map all functions called by a given function to reveal dependencies and complexity. Identify coupling and refactoring opportunities by analyzing call relationships.
Instructions
š± Find all functions called by the specified function.
šÆ PURPOSE: Maps function dependencies - what other functions does the target function rely on, revealing complexity and coupling. š§ USAGE: Use to understand function complexity, identify potential extraction opportunities, or analyze dependency chains. ā” PERFORMANCE: Fast operation (1-2s) - leverages indexed call relationships for instant results. š WORKFLOW: find_definition ā find_callees ā complexity_analysis ā identify refactoring opportunities. š” TIP: High callee count often indicates functions that are doing too much and could benefit from decomposition.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"function": "<function>"
},
"name": "find_callees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function | Yes | Function name to find callees for (include class context for methods) |