graph_invite_to_file
Invite people by email to a OneDrive file or folder, granting read or write access and optionally sending an invitation message through Microsoft Graph.
Instructions
Invite people to a file or folder by email.
Args: item_id: The file or folder ID to share. emails: Email addresses of the people to invite. role: Access to grant: "read" or "write" (default "read"). send_email: Whether Graph should email the invitation (default false). message: Optional message to include with the invitation. drive_id: Drive ID to act on. Empty targets your own OneDrive.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_id": "<item_id>",
"emails": "<emails>"
},
"name": "graph_invite_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | read | |
| emails | Yes | ||
| item_id | Yes | ||
| message | No | ||
| drive_id | No | ||
| send_email | No |