refactor_move_to_file
Move a function or class to a different file while automatically updating imports.
Instructions
Move a function or class to a different file. Updates imports automatically.
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": {
"path": "<path>",
"sourceFile": "<sourceFile>",
"symbolName": "<symbolName>",
"targetFile": "<targetFile>"
},
"name": "refactor_move_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root path of the repository | |
| apply | No | Apply changes (default: false) | |
| sourceFile | Yes | Path to source file | |
| symbolName | Yes | Name of function/class to move | |
| targetFile | Yes | Path to target file |