list_folder_contents
Retrieve files and folders from a Google Drive directory to organize and access content. Specify folder ID to list items with options for subfolders, files, and result limits.
Instructions
List the contents of a specific folder in Google Drive.
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_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | ID of the folder to list ('root' for Drive root) | |
| include_subfolders | No | Whether to include subfolders in results | |
| include_files | No | Whether to include files in results | |
| max_results | No | Maximum number of items to return (1-100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |