Tool: get_file_permissions
Call this tool to list the permissions of a Drive File.
The following sample demonstrate how to use curl to invoke the get_file_permissions MCP tool.
| Curl Request |
|---|
curl --location 'https://drivemcp.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "get_file_permissions", "arguments": { // provide these details according to the tool MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
Request to get file permissions.
GetFilePermissionsRequest
| JSON representation |
|---|
{ "fileId": string } |
| Fields | |
|---|---|
fileId |
Required. The ID of the file to get permissions for. |
Output Schema
Response to get file permissions.
GetFilePermissionsResponse
| JSON representation |
|---|
{
"permissions": [
{
object ( |
| Fields | |
|---|---|
permissions[] |
The list of permissions. |
Permission
| JSON representation |
|---|
{ "role": string "displayName": string "type": string "emailAddress": string "view": string } |
| Fields | |
|---|---|
Union field
|
|
role |
The role of the grantee for the file. The possible roles include: * |
Union field
|
|
displayName |
Output only. The "pretty" name of the value of the permission. The following is a list of examples for each type of permission: * |
Union field
|
|
type |
The type of the grantee. Supported values include: * |
Union field
|
|
emailAddress |
The email address of the user or group to which this permission refers. |
Union field
|
|
view |
Specifies the view to which this permission applies, if any. Supported values include: * |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌