Update File
file_updateReplace the content of a specified OneDrive file with a local file. Provide the file ID, local path, and account ID.
Instructions
✏️ Replace OneDrive file content with local file (requires user confirmation recommended)
Args:
file_id: Target OneDrive file identifier to replace.
local_file_path: Absolute path to the replacement file. Validated via
ensure_safe_path to block traversal and enforce workspace roots.
account_id: Microsoft account identifier.
Returns: Updated file metadata returned by Microsoft Graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| local_file_path | Yes | ||
| account_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||