search_docs
Retrieve Google Docs that have a filename containing a specified substring, searching your entire Drive including shared items. Ideal for name-only lookups.
Instructions
Search for Google Docs by filename substring across the user's entire Drive (including shared drives and items shared with them).
Use this for name-only lookups — it runs a Drive files.list query
with name contains '<query>' and a mimeType filter pinned to native
Google Docs. It does NOT search document content; for full-text search
use search_drive_files with a fullText query, or an external search
index. For listing docs in a specific folder, use list_docs_in_folder.
Requires OAuth scope: https://www.googleapis.com/auth/drive.readonly
(or broader drive scope). trashed=false is always applied — trashed
docs are excluded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address. Required. | |
| query | Yes | Case-insensitive substring to match against Doc filenames. Single quotes are auto-escaped before being embedded in the Drive query, so apostrophes in titles are safe. Empty string matches all Docs (bounded by `page_size`). | |
| page_size | No | Maximum number of results. Defaults to 10. Google's hard cap is 1000. No pagination token is exposed — increase this value if you need more results in one call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |