Drive List Drives
drive_list_drivesList shared Google Drives you belong to or look up one by drive ID to obtain the drive_id needed for listing files, while supporting pagination and query filters.
Instructions
List the shared drives the user is a member of, or look up one by drive_id. Use it to get a drive_id for drive_list_files; to search the files inside drives use drive_list_files. Returns drives (id, name, hidden, created_at, org_unit_id; what the user may do: can_add_children, can_edit, can_share, can_manage_members, can_download, can_delete_drive; restrictions: admin_managed_restrictions, domain_users_only, drive_members_only, copy_requires_writer_permission), count and next_page_token.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "drive_list_drives"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Filter in Drive's shared-drive search syntax, e.g. "name contains 'Finance'" or "hidden = true"; omit to list every shared drive the user is a member of. | |
| drive_id | No | Return only this shared drive, as a one-item list; page_size, page_token and query are ignored when it is given. Omit to list the user's shared drives. | |
| page_size | No | Shared drives per page, 1 to 100. | |
| page_token | No | The next_page_token from the previous response of this same call; omit for the first page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| drives | No | Shared drives on this page. | |
| has_more | No | Whether another page is available. | |
| fetched_at | No | RFC3339 time when this response was fetched. | |
| next_page_token | No | Opaque token for the next page, or null. |