folder_move
Move or rename an entire folder and its contents to reorganize your project structure.
Instructions
Moves or renames one folder with everything in it, inside one workspace. Same parent folder = rename; another parent = move (missing parent folders are created). One folder per call on purpose: a folder move touches many files at once. The destination must not exist (it is never overwritten or merged), a folder cannot move into itself, and a change of letter case only is allowed as a rename. Contents are not changed: C# namespaces, imports and project references to the old path stay as they were, so fix them afterwards (file_replace) and build. The code index follows the move. WHEN TO USE: reorganising a feature or project folder. For single files use file_move (it takes many at once); to remove a folder use folder_delete. RETURNS: the new path, or the error.
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": {
"workspace": "<workspace>",
"from": "<from>",
"to": "<to>"
},
"name": "folder_move"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The full new folder path, relative to the workspace root (e.g. 'Core/Services'), not the parent to move into. Must not exist. | |
| from | Yes | The folder to move, relative to the workspace root (e.g. 'Services'). Must exist. | |
| guide | No | true: put the files guide first in the result. Use on your first files call, or when told it changed. | |
| workspace | Yes | Workspace name as shown in Waymark (a single workspace; '*' is not accepted) |