All tools

Files & calendar · m365_edit_document

Edit a Microsoft 365 document

Edit a Word, PowerPoint or Excel file in OneDrive / SharePoint in place (new version, same link).

Price
1 credit / call
≈ €0.078 · $0.085
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
file *stringFile ref (item:<driveId>:<itemId>), item id, or share URL.
code *stringPython code that loads /home/user/<name>, modifies it and SAVES it to outputPath.
outputPathstringWhere the code saves the edited file. Default: /home/user/edited-<name>.
descriptionstringOne line describing the change (shown to the user).

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_edit_document","input":{"file":"…","code":"…","outputPath":"…","description":"…"}}'
$run({ "tool": "m365_edit_document", "input": {"file":"…","code":"…","outputPath":"…","description":"…"} })