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.
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 |