update_permission
Change the access role (reader, commenter, or writer) for an existing Google Drive file or folder permission to adjust sharing rights.
Instructions
Change the role on an existing permission for a file or folder.
Args: file_id: The Google Drive file or folder ID. permission_id: The permission ID to update (from list_permissions). role: New role. One of: 'reader', 'commenter', 'writer'.
Returns: Updated permissionId and role.
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>",
"role": "<role>"
},
"name": "update_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| file_id | Yes | ||
| permission_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||