generate_feature_flow_diagram
Trace the execution flow of a feature by mapping its call chain from entry point to database. Generate a Mermaid diagram showing how functions and classes interact at runtime for any feature keyword.
Instructions
Generate a Mermaid diagram showing the EXECUTION FLOW of a feature. Unlike generate_system_flow (which shows module imports), this traces the actual call chain: entry point → controller → service → model → database. Given a keyword, it finds all related functions and classes, then builds a flowchart or sequence diagram showing how they call each other at runtime. This is the best tool for understanding HOW a feature works step-by-step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project name or path | |
| keyword | Yes | Feature keyword to trace (e.g. 'login', 'payment', 'upload', 'auth') | |
| diagramType | No | Type of Mermaid diagram: 'flowchart' (default) shows call graph, 'sequence' shows step-by-step execution order | |
| depth | No | How many call hops to follow (default: 3) | |
| maxNodes | No | Maximum nodes in diagram (default: 40) |