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). | |
| image_min_score | No | Minimum similarity (0 to 1) for photo/screenshot matches. Affects image files only. OMIT to follow this call's `min_score` (0.25 unless set), the general similarity floor, which also applies to text matches. Image scores run lower than text scores: typically clear matches are about 0.40-0.50 and noise is usually below roughly 0.32. Raise it (e.g. 0.35) when photo hits are noisy; lower it (e.g. 0.20) to find weak matches such as scanned documents. A value outside 0..1 is refused, never clamped. | |
| image_hub_margin | No | How far (0 to 1) an image match must stand above that image's own similarity to unrelated queries; this hides images that look close to every query. OMIT it: the default is tuned. Change it only when the results show a problem, and then lower it a little (e.g. 0.04) rather than 0, which turns the check off. A value outside 0..1 is refused, never clamped. |