move_symbol
Move a class or function to another file and automatically update all imports across the project.
Instructions
Move a class or function to another file.
Updates all imports across the project automatically.
Args: project_path: Root directory of the Python project source_file: Source file path relative to project_path symbol_name: Name of the class or function to move dest_file: Destination file path (created if doesn't exist)
Returns: JSON with success status and list of changed files
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>",
"source_file": "<source_file>",
"symbol_name": "<symbol_name>",
"dest_file": "<dest_file>"
},
"name": "move_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| source_file | Yes | ||
| symbol_name | Yes | ||
| dest_file | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |