Files & calendar · m365_upload_file
Upload a file to OneDrive / SharePoint
Drop a file produced by the agent into OneDrive or a SharePoint folder.
- Price
- included
- Requirements
- SharePoint / OneDrive
- set it up in Settings → Integrations
- Human approval
- Yes, by default
- outside-facing write: a human validates
- Reliability
- Verified
- not measured yet
Input
| Field | Type | Description |
|---|---|---|
| fileId * | string | Ezyagents fileId (from generate_document or an attachment). |
| folder | string | Destination folder ref or share URL (default: OneDrive root). |
| fileName | string | Name to use in OneDrive / SharePoint (default: the original name). |
Call this tool
Through the HTTP API, or from the MCP server with the run meta-tool.
curl https://api.ezyagents.fr/gateway/v1/run \
-H "Authorization: Bearer ezk_…" -H "Content-Type: application/json" \
-d '{"tool":"m365_upload_file","input":{"fileId":"…","folder":"…","fileName":"…"}}'$
run({ "tool": "m365_upload_file", "input": {"fileId":"…","folder":"…","fileName":"…"} })