Plan JS/TS to Java migration
migrate_planGenerate a Java migration plan from JavaScript or TypeScript code, including work units, dependency-ordered waves, risks, starter decisions, and a vocabulary seed.
Instructions
Build a java-anything migration plan for a JS/TS file or project: units, dependency-ordered waves, risks, numbered starter decisions and a vocabulary seed. Inspiration: rust-anything (MIT).
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": "migrate_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Inline source to plan instead of reading a path | |
| name | No | Project name used in the plan (default: directory name) | |
| 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 files to analyze for a directory (default 500) | |
| report_path | No | Optional .md file path to receive the full migration plan markdown (must end with .md, not a directory) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| message | No | ||
| success | Yes |