get_drive_file_permissions
Inspect a Drive file's sharing permissions and public-link status to audit access before external sharing.
Instructions
Inspect a Drive file's sharing permissions and public-link status.
Use this to audit who can access a file before sharing externally. To change sharing use set_drive_file_permissions or manage_drive_access. For a quick public-vs-private check by filename use check_drive_file_public_access. Requires the drive.readonly OAuth scope.
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": {
"user_google_email": "<user_google_email>",
"file_id": "<file_id>"
},
"name": "get_drive_file_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| file_id | Yes | Drive file ID from search_drive_files or a shareable URL. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |