> ## Documentation Index
> Fetch the complete documentation index at: https://developers.myhero.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Drive search

> Search the user's Google Drive using Drive's native query syntax. Returns file metadata only (no content — follow up with drive_get_file_content). Drive…

`drive_search`

Search the user's Google Drive using Drive's native query syntax. Returns file metadata only (no content — follow up with `drive_get_file_content`). Drive query examples:   - `name contains 'invoice'` — name substring   - `fullText contains 'Q4 planning'` — full-text search of doc contents   - `mimeType = 'application/pdf'` — only PDFs   - `mimeType = 'application/vnd.google-apps.document'` — only native Google Docs   - `modifiedTime > '2026-01-01T00:00:00'` — modified after a date   - `'alice@example.com' in owners` — owned by Alice   - Combine with `and` / `or`: `name contains 'invoice' and mimeType = 'application/pdf'` The tool automatically appends `trashed = false` to every query. Leave `query` empty to list the most recently-modified files.

## Parameters

<ParamField path="query" type="string">
  Google Drive query string. See examples in the tool description. Empty string = list most recently modified.
</ParamField>

<ParamField path="limit" type="integer" default={20}>
  Minimum: 1. Maximum: 50.
</ParamField>
