list_folders
List subfolders in a Google Drive folder to narrow file searches. Optionally include nested folders recursively.
Instructions
List subfolders within the target Google Drive folders.
Use this before list_files when you need to scope a search to a specific subfolder. Returns a JSON array of objects with 'id' and 'name'. Pass a folder 'id' to list_files as folder_id to narrow the search scope.
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_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recursive | No | If True, includes nested subfolders. Defaults to False (top-level only). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |