---
title: "List Folders"
description: "List Google Drive folders with optional search, parent folder, and paging."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/drive/list-folders"
---
# List Folders

> List Google Drive folders with optional search, parent folder, and paging.

<block-meta block="Yes" capability="Google Drive" channels="Any" folder="google/drive" group="Drive" groupTo="/build/workflows/blocks/drive" icon="i-lucide-folder" pipe="Value" scope="Any" service="Google" tool="Yes" type="google.drive.list_folders">



</block-meta>

**List Folders** returns folders from the connected Drive. Search uses Drive `q` syntax. Type a query in one line and insert context with `{{ }}`.

A folder id is the same kind of id as a file. Use it with:

- [List Files](https://docs.vettero.com/build/workflows/blocks/drive/list-files), [Create Folder](https://docs.vettero.com/build/workflows/blocks/drive/create-folder), [Upload File](https://docs.vettero.com/build/workflows/blocks/drive/upload-file) — contents and new items
- [Get File](https://docs.vettero.com/build/workflows/blocks/drive/get-file) — metadata
- [Update File](https://docs.vettero.com/build/workflows/blocks/drive/update-file) — rename
- [Move File](https://docs.vettero.com/build/workflows/blocks/drive/move-file) — nest under another folder
- [Trash File](https://docs.vettero.com/build/workflows/blocks/drive/trash-file) — trash or permanently delete
- [Share File](https://docs.vettero.com/build/workflows/blocks/drive/share-file) and [List Permissions](https://docs.vettero.com/build/workflows/blocks/drive/list-permissions)

There is no separate rename-folder or delete-folder block.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Search query (optional)
      </strong>
    </td>
    
    <td>
      Drive <code>
        q
      </code>
      
      . Liquid template
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Parent folder ID (optional)
      </strong>
    </td>
    
    <td>
      Limit to folders inside this folder
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Page size
      </strong>
    </td>
    
    <td>
      1–1000. Default <strong>
        20
      </strong>
      
       if empty
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Page token (optional)
      </strong>
    </td>
    
    <td>
      <code>
        nextPageToken
      </code>
      
       from a previous list
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Include trashed
      </strong>
    </td>
    
    <td>
      Include folders in trash
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        folders
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Folder metadata (<code>
        id
      </code>
      
      , <code>
        name
      </code>
      
      , <code>
        mimeType
      </code>
      
      , links, <code>
        parents
      </code>
      
      , <code>
        modifiedTime
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        nextPageToken
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Pass to the next list
    </td>
  </tr>
</tbody>
</table>

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
