search_files
Search files and attachments across the workspace — by content, filename, document type, or origin. For message content use search.messages; for links use search.links.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum files to return. | |
| query | No | What to search for (content or filename). | |
| file_origin | No | File origin: 'generated' (created by tools), 'received' (from messages), 'uploaded' (manual). Use 'generated' for files the user created/sent. OMIT to include all origins. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| document_type | No | Filter by document category. OMIT unless the user explicitly mentions one — picking a value narrows the search and is a common cause of zero-result mistakes. | |
| attachment_name | No | Exact filename filter. OMIT to skip (do NOT pass an empty string). |