share_onedrive_file
Share a OneDrive file as a link destructive
Description
Create a SHARING LINK to a OneDrive file or folder (fileId from list_onedrive_files): type view (read-only, default), edit, or embed (an <iframe> link, personal OneDrive only); scope anonymous (anyone with the link, default), organization (work or school OneDrive only) or users (only people you invite); optional expiresAt (date or ISO) and password (on a personal OneDrive both need a Microsoft 365 subscription; the refusal says so). An ANONYMOUS EDIT link lets anyone holding it change or delete the file, so it needs confirm:true after you show the user that; every other link is created straight away. If Hermoso already made the same kind of link, OneDrive returns that one and the reply says it was reused. Read back from the item's permission list. 0 credits. Needs OneDrive connected.
Parameters
| Parameter | Type | Description |
|---|---|---|
fileIdrequired | string | OneDrive file or folder id from list_onedrive_files |
type | "view" | "edit" | "embed" | view (default), edit, or embed (personal OneDrive only) |
scope | "anonymous" | "organization" | "users" | anonymous (default, anyone with the link), organization (work or school), or users (invited people only) |
expiresAt | string | e.g. 2026-11-30 or 2026-11-30T17:00:00Z |
password | string | personal OneDrive with Microsoft 365 |
confirm | boolean | required for an anonymous edit link |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/share_onedrive_file.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"share_onedrive_file","arguments":{"fileId":"<string>"}}}
CLI
hermoso call share_onedrive_file --json '{"fileId":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_onedrive_filesList OneDrive filesdelete_onedrive_fileDelete a OneDrive fileonedrive_file_permissionsWho can open a OneDrive fileupdate_onedrive_fileRename / move a OneDrive fileconvert_onedrive_fileConvert a OneDrive file to PDF or JPGget_onedrive_fileGet a OneDrive file’s detailscreate_onedrive_folderCreate a OneDrive foldersave_to_onedriveSave file(s) to OneDrive