Analyze JavaScript/TypeScript
analyze_javascriptScans JavaScript/TypeScript files or projects to inventory frameworks, npm dependencies, routes, components, browser APIs, and migration risks for Java migration planning.
Instructions
Inventory a JS/TS file or project: frameworks, npm dependencies, routes, components, browser APIs and migration risks.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_javascript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Inline source to analyze instead of reading a path | |
| path | No | JavaScript/TypeScript file or project directory inside an allowed root | |
| file_name | No | Virtual file name for inline code, e.g. app.tsx (default input.js) | |
| max_files | No | Maximum project files to scan (default 500) |