Search Docs
search_docsSearch Google Docs by document name to locate files, filter by corpus or shared drive, and return paginated matching results.
Instructions
Searches for Google Docs by name using Drive API (mimeType filter).
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": {
"user_google_email": "<user_google_email>",
"query": "<query>"
},
"name": "search_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text to search for in document names. | |
| corpora | No | Corpus to search ('user', 'domain', 'drive', 'allDrives'). Defaults to 'drive' when drive_id is set, otherwise 'allDrives'. | |
| drive_id | No | Optional shared drive ID to search. | |
| page_size | No | Maximum number of documents to return. Defaults to 10. | |
| page_token | No | Page token from a previous response's nextPageToken to retrieve the next page of results. | |
| user_google_email | Yes | The user's Google email address. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |