Copy File
file_copyCopy a file to any folder in OneDrive with an optional new name. Track the asynchronous operation using the returned location URL.
Instructions
✏️ Copy a file within OneDrive (requires user confirmation recommended)
Creates a copy of a file in a specified destination folder. The copy operation is asynchronous and may take time for large files.
Args: file_id: The file ID to copy destination_folder_id: The destination folder ID account_id: Microsoft account ID new_name: Optional new name for the copied file
Returns: Copy operation status with location URL to monitor progress
Raises: ValueError: If file_id or destination_folder_id is invalid
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| destination_folder_id | Yes | ||
| account_id | Yes | ||
| new_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||