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

> List Google Drive files with optional search, folder, MIME type, and paging.

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



</block-meta>

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

## 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>
        Folder ID (optional)
      </strong>
    </td>
    
    <td>
      Limit to children of this folder
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        MIME type (optional)
      </strong>
    </td>
    
    <td>
      Exact MIME type
    </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 items 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>
        files
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      File metadata (<code>
        id
      </code>
      
      , <code>
        name
      </code>
      
      , <code>
        mimeType
      </code>
      
      , links, <code>
        parents
      </code>
      
      , <code>
        modifiedTime
      </code>
      
      , <code>
        size
      </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.
