search_files
Find files and folders by name in shared Nextcloud areas using case-insensitive substring matching, optionally scoped to a folder. Returns matching paths and metadata without full-text document search.
Instructions
Levuvo Nextcloud MCP v0.5.3 - Search file names. Configured maximum depth: 6. Configured maximum directories per search: 100. Configured maximum results: 100. (Server defaults: 6, 100 and 100; set via NEXTCLOUD_SEARCH_MAX_DEPTH, NEXTCLOUD_SEARCH_MAX_DIRECTORIES and NEXTCLOUD_SEARCH_MAX_RESULTS.) Find files and folders by NAME within the shared areas only (no full-text search inside documents). Matching is a case-insensitive substring match of query against each file and folder name. Without path, the search starts at all configured shares, and the shared root folders and files themselves are candidates too; with path, only the contents of that shared folder (or folder below a share) are searched. Excluded entries (NEXTCLOUD_DENIED_PATHS) are never searched or returned. Parameters: query (1-120 characters); path (optional, a shared folder to search in, default '' = all shares); max_depth (0-6, default 3) - number of subfolder levels to descend below the starting folders, 0 = only their direct entries; max_results (1-100, default 25). At most 100 folders are scanned per call, with up to 4 requests in parallel. Returns: query, path (the searched folder, '' for all shares), results (list of matching entries with path, name, is_dir, size_bytes, content_type, modified, etag, permissions (Nextcloud permission letters of the technical account)), directories_scanned (number of folders listed), complete, incomplete_reasons and note. complete=true means the chosen area was searched completely. complete=false means hits may be missing and incomplete_reasons lists why: depth_limit, directory_limit, result_limit (subfolders deeper than max_depth exist and were not searched; the folder budget was exhausted; more hits exist than max_results). Then never claim that every subfolder was searched: raise max_depth or max_results, narrow the query or search a subfolder with path. Read-only. Errors: invalid arguments and values above the configured limits are rejected; a file as path fails with 'path must be a folder; this is a file. Use get_file_info or read_file.'; a path that is not shared or explicitly excluded fails with 'The path is not released for the MCP agent.'; malformed paths (leading '/', '..', URL-encoded characters) are rejected; a missing entry fails with 'File or folder not found.'; Nextcloud authentication, network or server problems are reported as errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional relative path of a shared folder (or a folder below one) to search in, not URL-encoded. Empty (default) = search all configured shares. | |
| query | Yes | Part of a file or folder name (1-120 characters); case-insensitive substring match. | |
| max_depth | No | How many subfolder levels below the starting folders to descend (0-6, default 3); 0 = only their direct entries. | |
| max_results | No | Maximum number of hits to return (1-100, default 25). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||