analyze_react_component
Analyzes React components to extract typed props, hooks with arguments, consumed contexts, custom hooks, early returns, and memo/forwardRef usage.
Instructions
In-depth analysis of a React component: typed props, hooks with arguments, consumed contexts, custom hooks, early returns and memo/forwardRef. Deterministic (ts-morph).
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": {
"name": "<name>",
"file": "<file>"
},
"name": "analyze_react_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative path to the component .tsx/.jsx file | |
| name | Yes | Name or path of the loaded project |