copy_file
Copy a file or directory in Nextcloud to a new destination path. Leaves the source unchanged; fails if the destination already exists.
Instructions
Copy a file or directory in Nextcloud.
Creates a copy at the destination path. The source remains unchanged. Fails if the destination already exists.
Args: source: Source path. Example: "Documents/report.md" destination: Destination path. Example: "Documents/report-backup.md"
Returns: Confirmation message.
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": {
"source": "<source>",
"destination": "<destination>"
},
"name": "copy_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |