file_search
Search file and folder names and extracted contents across storage using forgiving matches, tag filters, and ranked results with text snippets.
Instructions
Search file/folder names AND (by default) inside extracted file contents within a storage. Name matching is forgiving: ., -, _ and a space are interchangeable (invoice 2026 finds invoice_2026.pdf), every word must match, and one typo is tolerated. A query may carry tag:<name> / -tag:<name> filters, which narrow to (or exclude) files carrying that tag - your personal tag of that name or your team's, both count; a tag that does not exist returns nothing. Results are ranked: exact filename, prefix, name, path, fuzzy, then content-only. Content hits include a plain-text snippet with matches wrapped in « ». Pass content=false for the old name-only behavior.
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": "file_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | only mime types starting with this (image/, application/pdf) | |
| path | No | adapter:// scope for the search; empty = first storage | |
| type | No | only this kind: file, dir, document, spreadsheet, presentation, pdf, image, video, audio, archive, code, text or other | |
| owner | No | me, system (nobody put it there through filex) or an account id | |
| query | Yes | text to match against file/dir names (and file contents unless content=false); separators and typos are forgiven, and tag:NAME / -tag:NAME filter by tag | |
| under | No | only inside this folder (adapter://dir or a storage-relative path) | |
| hidden | No | false drops names starting with a dot; default keeps them | |
| content | No | also match inside extracted file contents and return snippets (default true) | |
| max_size | No | at most this many bytes | |
| min_size | No | at least this many bytes (folders never match a size bound) | |
| not_under | No | only outside this folder | |
| modified_after | No | modified at or after: RFC 3339, YYYY-MM-DD or unix milliseconds | |
| modified_before | No | modified at or before: RFC 3339, YYYY-MM-DD or unix milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes |