Move or rename
moveRename or relocate a file or folder in Nextcloud, optionally replacing an existing destination.
Instructions
Move or rename a file or folder with WebDAV MOVE. overwrite defaults to false. Refuses to move the files root or a folder into itself.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "move"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | New path, relative to the files root. This is a move, not a copy. | |
| from | Yes | Existing file or folder path, relative to the files root. | |
| overwrite | No | Replace the destination if it exists. Default false. |