searchDocuments
Search Google Docs, Word, and PDF files by name or content, with filters for file type, modification date, and result limit to find targeted documents quickly.
Instructions
Searches for documents by name, content, or both. Finds Google Docs, Word (.docx), and PDF files. Use listDocuments for browsing and this tool for targeted queries.
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": "searchDocuments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search term to find in document names or content. | |
| fileType | No | Filter by file type: all document types, Google Docs only, Word (.docx) only, or PDF only. | all |
| searchIn | No | Where to search: document names, content, or both. | both |
| maxResults | No | Maximum number of results to return. | |
| modifiedAfter | No | Only return documents modified after this date (ISO 8601 format, e.g., "2024-01-01"). |