file_move
Move or rename files within a workspace using all-or-nothing checks; if any source, destination, or access validation fails, nothing changes and each issue is listed.
Instructions
Moves or renames one or more files inside one workspace. A destination in the same folder renames; one in another folder moves, creating missing destination folders. ALL OR NOTHING: every entry is checked first (source exists and is a file, destination free, no two entries to the same place, access rules). If any entry fails, nothing is moved and each problem is listed. An existing destination is never overwritten: delete it first with file_delete if it must be replaced. At most 50 entries per call. Contents are not changed: C# namespaces, imports and references to the old path stay as they were, so fix them afterwards (file_replace) and build. Saved flows whose steps lived in a moved file are named in the reply, to update with memorise. WHEN TO USE: renaming or reorganising files. For a whole folder use folder_move; to copy a file use file_write with a copy entry. RETURNS: one line per file with its new path, or the reasons nothing was moved.
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>",
"movesJson": "<movesJson>"
},
"name": "file_move"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guide | No | true: put the files guide first in the result. Use on your first files call, or when told it changed. | |
| movesJson | Yes | JSON array of moves, paths relative to the workspace root: [ { "from": "Services/OldName.cs", "to": "Core/Services/NewName.cs" } ]. 'to' is the full new file path, not a folder. | |
| workspace | Yes | Workspace name as shown in Waymark (a single workspace; '*' is not accepted) |