teams_revoke_file_link
Remove sharing links and permissions from a OneDrive file to stop chat members from opening it, or revoke only a specific permission ID from files sent in Teams.
Instructions
Stop sharing a file in your OneDrive (e.g. one sent with teams_send_file) by removing all its sharing links and grants, or only permission_id from teams_list_sent_files; people in the chat can no longer open it. Personal and work accounts.
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>"
},
"name": "teams_revoke_file_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Account alias (see teams_accounts). Defaults to the default account. | |
| item_id | Yes | driveItemId / itemId of the file | |
| permission_id | No |