analyze_file
Analyze a React/TSX file to extract its components, hooks, imports, exports, and directives. Uses AST analysis to provide precise code structure for efficient AI coding assistance.
Instructions
Analyze a single React/TSX file. Returns components, hooks, imports, exports, and directive.
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": {
"filePath": "<filePath>"
},
"name": "analyze_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the TSX/JSX file to analyze |