removePermission
Revoke a specific sharing permission from a Google Drive file or folder by supplying the file ID and permission ID; use listPermissions first to find the permission ID.
Instructions
Revokes a specific sharing permission from a Drive file or folder. Use listPermissions first to get the permissionId you want to remove.
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": {
"fileId": "<fileId>",
"permissionId": "<permissionId>"
},
"name": "removePermission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The ID of the file or folder. | |
| permissionId | Yes | The ID of the permission to remove (from listPermissions). |