List shared drives
list_shared_drivesLists shared drives the authorized user belongs to, returning id, name, createdTime, and nextPageToken. Filter by name substring to locate a drive ID for browsing its contents.
Instructions
Lists the shared drives (formerly Team Drives) the authorized user is a member of: id, name, createdTime, plus nextPageToken. Use a drive's id as drive_id in search_files to browse its contents, or as parent_id to list its root. name_contains filters by name. My Drive is not a shared drive and never appears here.
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": "list_shared_drives"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_size | No | Drives per page (1..100; API default 10). | |
| page_token | No | nextPageToken from the previous page. | |
| name_contains | No | Only shared drives whose name contains this substring. |