map_v1_to_v2
Translate a v1 clearskies code snippet to v2, providing the updated code, breaking changes, and migration notes for the specified context.
Instructions
Map a v1 code snippet to its v2 equivalent.
Useful for understanding how specific v1 patterns translate to v2.
Args:
v1_code_snippet: The v1 code to convert
context: Context hint ('model', 'handler', 'di', 'general')
Returns:
Dictionary containing:
- v2_code: Converted v2 code
- breaking_changes: List of breaking changes
- notes: Migration notes
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": {
"v1_code_snippet": "<v1_code_snippet>"
},
"name": "map_v1_to_v2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | general | |
| v1_code_snippet | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||