upload_file
Upload or overwrite text files in Nextcloud. Writes plain-text content like markdown, code, or JSON to a specified path, creating or replacing the file.
Instructions
Upload or overwrite a text file in Nextcloud.
Use this for plain-text content (markdown, source code, CSV, JSON, etc.). For binary files (images, PDFs, archives), use upload_file_binary instead.
Creates the file if it doesn't exist. Overwrites if it does.
Args: path: Destination path relative to user's root. Example: "Documents/report.md" content: Text content to write to the file.
Returns: Confirmation message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |