trace_prop_flow
Trace any prop through the React component tree: go up to find its source or down to see where it propagates. Uses import graph to trace across files.
Instructions
Trace a prop through the component hierarchy. Direction "up" finds where the value comes from, "down" finds where it propagates to children. Uses import graph for cross-file tracing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max flow entries to return (default: 20, max: 50) | |
| maxDepth | No | Maximum depth to trace (default: 10) | |
| propName | Yes | Prop name to trace (e.g., "userId", "onChange") | |
| direction | Yes | Direction to trace: "up" (find origin), "down" (follow propagation), or "both" | |
| startFile | Yes | File containing the starting component | |
| projectPath | Yes | Root path of the project | |
| startComponent | No | Starting component name (uses first component in file if not specified) |