migrate_v1_to_v2
Analyze Pydantic v1 code to identify migration issues for v2 and optionally apply fixes.
Instructions
Analyze a snippet or model source for common Pydantic v1-to-v2 migration issues.
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_v1_to_v2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| target | No | ||
| apply_fixes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | ||
| artifacts | No | ||
| diagnostics | No | ||
| resolved_target | No |