fs_search
Find files on your disk by filename with fuzzy matching and ranked results. Narrow by directory or extension.
Instructions
Search the user's disk by filename (v1 filename fuzzy).
Returns a ranked list of file paths whose name matches the query.
Ranking blends fuzzy match, recency, and a directory prior — so
files in ~/Documents outrank equivalents in
~/Library/Caches.
Args:
query: The text the user is looking for. Case-insensitive.
Synonyms are auto-expanded (resume also matches cv,
passport matches id, etc.).
paths: Optional list of directories to search under. Empty
= search the user's home directory.
ext: Optional extension filter, e.g. "pdf".
limit: Max hits to return (default 10).
Returns:
result.hits is a list of {path, score, matched_query}
dicts sorted best-first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ext | No | ||
| limit | No | ||
| paths | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||