Move Folder
moveFolderMoves a mail folder to a different parent within the same account for reorganizing folder hierarchy; special folders and folders containing them are refused.
Instructions
Move a mail folder under another parent in the same account; to change only its name, use renameFolder. Special folders and folders holding one are refused. On IMAP the server finishes later: check with listFolders.
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": {
"folderPath": "<folderPath>",
"newParentPath": "<newParentPath>"
},
"name": "moveFolder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folderPath | Yes | URI of the folder to move (from listFolders) | |
| newParentPath | Yes | URI of the destination parent folder (from listFolders) |