Search files
drive_searchFind files and folders in Proton Drive under a path by name, type, extension, size, or date. Filters are ANDed and results include pagination and walk status.
Instructions
Find files/folders under a path by name, type, extension, size or date in one walk. Filters are ANDed. Returns {total, hasMore, items [{path, type, size?, mtime?, sha1?}], walk {complete, fromCache, skipped?}}; walk.complete=false means matches may be missing. Cached 5 min; refresh=true re-reads; skips .git/node_modules. After 25 s returns partial:true and keeps walking; call again. With PROTON_DRIVE_INDEX=1 a saved index may answer first (stale:true); repeat the call or pass refresh:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Name pattern, e.g. *.pdf (* ? **). A pattern containing '/' matches the path relative to `path` (no leading slash), e.g. Docs/*/*.pdf. | |
| path | No | Default /my-files. | |
| sort | No | Default name; size and mtime sort descending. | |
| type | No | Only files or folders. | |
| limit | No | Default 50. | |
| query | No | Name substring, case-insensitive. | |
| offset | No | Items to skip. | |
| maxSize | No | Bytes (files only). | |
| minSize | No | Bytes (files only). | |
| refresh | No | Bypass the cache. | |
| mediaType | No | MIME prefix, e.g. image/. | |
| extensions | No | e.g. ['pdf','docx']. | |
| modifiedAfter | No | ISO date (original mtime, else upload time). | |
| modifiedBefore | No | ISO date. |