drive_list_files
Search Google Drive and return matching file metadata—IDs, names, MIME types, owners, sharing status, and links—within a result limit; privacy settings may redact fields.
Instructions
Search Google Drive and return matching file metadata (id, name, mime_type, owners, sharing status). Returns a list of {id, name, mime_type, size, created_time, modified_time, owners, shared, web_view_link, parent_ids, drive_id, thumbnail_link, tags}: at most max_results files (default 20, capped at 1000), read across pages, in the order the Drive API gives for the query; fields may be redacted by the user's privacy settings. Use drive_list_folder to list one folder's children, or drive_get_file_metadata when you already have a file's id. Auto-approved.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"reason": "<reason>"
},
"name": "drive_list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Drive API 'q' search query syntax, not a plain-text search string, e.g. "name contains 'Foo'" or "fullText contains 'Foo'". See https://developers.google.com/drive/api/guides/search-files | |
| reason | Yes | One sentence: why are you calling this tool right now? | |
| max_results | No | Most files to return. Default 20, capped at 1000. Reads up to max_results items across pages. |