analyze_execution_paths
Analyze all possible execution paths through a function to identify triggers, conditions, edge cases, and decision points. Use to debug complex logic and plan comprehensive test coverage.
Instructions
Analyze all possible execution paths through a function and what triggers each path.
Use this tool when you need to understand:
All the different ways a complex function can execute
What conditions or parameters lead to different code paths
Potential edge cases or error conditions
Decision points and branching logic
Perfect for understanding complex business logic, debugging function behavior, or planning test cases that cover all execution paths.
Args: repo_path: Repository path (absolute) working_directory: Working directory (absolute path) function_name: Name of the function to analyze max_depth: How deep to analyze nested function calls include_call_contexts: Whether to show how the function is called highlight_complex_paths: Whether to identify complex/risky paths
Returns: Execution path analysis with decision points and complexity assessment
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | ||
| repo_path | Yes | ||
| function_name | Yes | ||
| working_directory | Yes | ||
| include_call_contexts | No | ||
| highlight_complex_paths | No |