Search Workspace
search_workspaceSearch Drive, contacts, and Gmail with one query to locate files, people, or messages when the right service is unclear.
Instructions
Search Drive, the user's saved contacts and Gmail with one query, for a first look when the right service is unclear. Drive matches names and content (name matches first, no shared drives); Gmail takes Gmail query syntax and each hit is read in one metadata request. For full queries and paging use drive_list_files, people_search_contacts or gmail_search_emails. Returns matches (service, id, kind, resource; Drive name, mime_type, modified_at, web_url; contact name, email; Gmail thread_id, subject, from, date, snippet, unread), count, account_timezone and errors per failed service; the call fails only when every service fails.
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>"
},
"name": "search_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search text, must not be blank. Drive matches it against file names and content (fullText contains, plus name contains for name prefixes), contacts by prefix of names, emails, phone numbers or organizations, and Gmail treats it as a Gmail search query, e.g. 'from:alice invoice'. | |
| services | No | Services to search: any of 'drive', 'people' (the user's saved contacts) and 'gmail'; omit to search all three. | |
| max_results_per_service | No | Maximum hits from each searched service, 1 to 25. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| query | No | ||
| errors | No | ||
| matches | No | ||
| has_more | No | Whether another page is available. | |
| services | No | ||
| fetched_at | No | RFC3339 time when this response was fetched. | |
| next_page_token | No | Opaque token for the next page, or null. | |
| account_timezone | No |