move_symbol
Relocate a code symbol to another file while automatically updating imports across all call sites. Use it to refactor codebases by symbol instead of manual text edits.
Instructions
Move a symbol to a different file, updating imports in all call sites.
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": {
"symbol": "<symbol>",
"target_file": "<target_file>"
},
"name": "move_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Symbol name to move. | |
| project | No | Project name/path (default: active). | |
| target_file | Yes | Relative path to the target file. | |
| create_if_missing | No | Create target file if it doesn't exist (default true). |