Search Files
search_filesSearch for files by name, text content, type, or date range. Use this instead of list_files when the user has many files or is looking for something specific. Use content when the user remembers what a file says but not what it is called. All parameters are optional — combine them to narrow results. Searches only what the user has shared with ShareWatch, and a shared folder does not share its contents — files inside it must be shared themselves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by file type. One of: document, spreadsheet, presentation, pdf, folder. Matched case-insensitively; any other value is REJECTED with an error rather than ignored, so a filter you set is always a filter that applied. | |
| query | No | Search by file name (partial match). Example: 'board deck' or 'Q3 financials' | |
| content | No | Search inside file text, not just names — finds files whose body contains these words, scoped to files ShareWatch can see. Word-based, not substring: 'quarterly revenue' matches files containing those words. Combine with query to require both. | |
| modified_after | No | Only files modified after this date (ISO 8601 e.g. '2026-01-01') | |
| modified_before | No | Only files modified before this date (ISO 8601 e.g. '2026-04-01') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| guidance | No |