generate_v2_migration
Analyzes a v1 codebase and generates v2-compatible code. Preview changes with dry run before writing files.
Instructions
Generate v2 code from a v1 project.
This tool analyzes a v1 codebase and generates v2-compatible code.
Use dry_run=True to preview changes without writing files.
Args:
project_path: Path to the v1 project directory
output_path: Path where v2 code should be generated
dry_run: If True, don't write files (default: True)
Returns:
Dictionary containing:
- files: List of files to create/modify
- breaking_changes: List of breaking changes
- warnings: List of warnings
- manual_steps: List of manual steps required
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": {
"project_path": "<project_path>",
"output_path": "<output_path>"
},
"name": "generate_v2_migration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| output_path | Yes | ||
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||