Codicil.MCP.Tools.ListFunctionCallees (Codicil v0.7.1)

View Source

List all functions called by a specific source function. Shows what code a function depends on.

Use this tool when:

  • Tracing execution flow to understand what code runs when a function executes
  • Identifying dependencies before refactoring
  • Understanding function behavior by examining what it calls

Examples:

  • See what User.update/2 calls internally to understand its side effects
  • Trace database queries triggered by a controller action
  • Identify which helper functions are used by a complex operation

Returns: Comprehensive list of called functions with module, name, arity, and file location.

Summary

Functions

Find all functions called by the specified source function.

Functions

call(map)

Find all functions called by the specified source function.

Parameters

  • functionName - Name of the source function
  • moduleName - Module name (e.g., "MyModule" or ":gen_server")
  • arity - Function arity

Returns

  • {:ok, text} with formatted list of callees
  • {:error, reason} if function not found