remove_permission
Revoke access to a Google Drive file or folder by removing a specified permission ID. Use it to clean up sharing and restrict who can view or edit a file.
Instructions
Revoke a permission on a file or folder.
Args: file_id: The Google Drive file or folder ID. permission_id: The permission ID to remove (from list_permissions).
Returns: Confirmation with fileId, permissionId, and action taken.
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>",
"permission_id": "<permission_id>"
},
"name": "remove_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| permission_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||