Drive List Permissions
drive_list_permissionsLists who can access a Drive file or folder and their access level, or retrieves one grant by permission_id to find permission IDs before updating or removing sharing.
Instructions
List who has access to a Drive file or folder and at what level, or look up one grant by permission_id. Use it before drive_share_file (update mode) or drive_unshare_file to find the permission_id. Returns permissions (id, type, role, email_address, domain, display_name, allow_file_discovery, pending_owner, expires_at in the account time zone, deleted), count and next_page_token.
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": "drive_list_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Drive file ID: the id field of Drive and search_workspace results, or the long ID in a Drive, Docs, Sheets or Slides URL. | |
| page_size | No | Permissions per page, 1 to 200. | |
| page_token | No | The next_page_token from the previous response of this same call; omit for the first page. | |
| permission_id | No | Return only this permission, as a one-item list; page_size and page_token are ignored when it is given. Omit to list every grant on the file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| has_more | No | Whether another page is available. | |
| fetched_at | No | RFC3339 time when this response was fetched. | |
| permissions | No | Grants on this page. | |
| next_page_token | No | Opaque token for the next page, or null. |