Upload a text file to OneDrive
files_upload_textWrite text content to a file in OneDrive, creating missing folders and replacing any existing file. Use for uploading text up to 4 MB.
Instructions
Writes a text file to the given path in the signed-in user's OneDrive and returns the stored item. Missing parent folders are created automatically. An existing file at that path is REPLACED, not merged or appended, so read it with files_read_text first if you mean to edit it. Text only, up to 4 MB; larger or binary uploads need a resumable upload session, which this server does not expose.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination path from the OneDrive root including the file name, e.g. "Notes/meeting-2026-09-03.md". Missing parent folders are created automatically. | |
| content | Yes | The full text to write. This replaces the file contents; there is no append mode. |