list_folder
Lists files and subfolders in a Google Drive folder using its ID, supporting both My Drive and Shared Drive.
Instructions
Lists the contents (files and subfolders) of a specific Google Drive folder by its ID. Works with both My Drive and Shared Drive folders. Use get_file_metadata or search_files to find folder IDs first.
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": {
"folder_id": "<folder_id>"
},
"name": "list_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | Google Drive folder ID (works with both My Drive and Shared Drive folders) | |
| page_size | No | Max items to return (default 50) |