graph_share_file
Create a sharing link for a OneDrive file with configurable view, edit, or embed permissions and anonymous, organization, or user scope.
Instructions
Create a sharing link for a OneDrive file.
Args: file_id: The file ID to share. share_type: Permission type: "view", "edit", or "embed" (default "view"). scope: Share scope: "anonymous", "organization", or "users" (default "organization").
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": {
"file_id": "<file_id>"
},
"name": "graph_share_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | organization | |
| file_id | Yes | ||
| share_type | No | view |