All tools

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

FieldTypeDescription
fileId *stringEzyagents fileId (from generate_document or an attachment).
folderstringDestination folder ref or share URL (default: OneDrive root).
fileNamestringName 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":"…"} })