search_files
Search Nextcloud files by name or MIME type recursively, returning results sorted by last modified date.
Instructions
Search for files in Nextcloud by name and/or MIME type.
Searches recursively through all subdirectories of the given path. Results are sorted by last modified date (newest first).
At least one of query or mimetype must be provided.
Args: query: Text to find anywhere in the file name, case-insensitive, taken literally (% and _ are not wildcards). Example: "report" matches "quarterly-report.pdf", "report-2026.docx". path: Directory to search in (default: "/" for entire user folder). Example: "Documents" to only search in Documents. mimetype: Filter by MIME type prefix. Example: "image" for all images, "application/pdf" for PDFs, "text" for all text files. limit: Maximum number of results (1-100, default: 20). offset: Number of results to skip for pagination (default: 0).
Returns: JSON object with "data" (list of matching files) and "pagination" (count, offset, limit, has_more).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | / | |
| limit | No | ||
| query | No | ||
| offset | No | ||
| mimetype | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |