list_docs_in_folder
List all Google Docs directly inside a given Drive folder. Use it to enumerate docs in a known folder without recursive subfolder search.
Instructions
List all Google Docs (native application/vnd.google-apps.document)
that live directly inside a given Drive folder.
Use this when you want to enumerate Docs inside a known folder (e.g.,
a team drive subfolder). For name-based search across the whole
Drive, use search_docs. For non-Doc files (Sheets, Slides, PDFs,
etc.) in the folder, use list_drive_items or search_drive_files.
Only direct children are returned — subfolders are NOT recursed. Shared
drives are supported via supportsAllDrives=True + includeItemsFromAllDrives=True.
Trashed docs are excluded.
Requires OAuth scope: https://www.googleapis.com/auth/drive.readonly
(or broader drive scope).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address. Required. | |
| folder_id | No | Drive folder ID (the string after `/folders/` in the folder URL). Defaults to `"root"` which is the user's My Drive root. For shared drives, pass the shared-drive ID. Passing an invalid or inaccessible folder ID returns "No Google Docs found" (Drive treats missing folders as an empty set rather than raising an error in most cases). | root |
| page_size | No | Maximum number of docs to return. Defaults to 100. Google's hard cap is 1000. No pagination token is exposed — raise this value if a folder may contain more docs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |