find_files
Search for files by name across macOS, leveraging Spotlight for speed and falling back to direct filesystem scanning. Customize search with root directory, hidden file inclusion, and result count.
Instructions
Find files by name using Spotlight first, with Python filesystem fallback.
Args: query: File name or Spotlight query text root: Optional directory to search within max_results: Maximum number of results to return include_hidden: Include hidden files and folders kind: Search backend: auto, name, or spotlight
Returns: JSON string with file metadata results or an error message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | auto | |
| root | No | ||
| query | Yes | ||
| max_results | No | ||
| include_hidden | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |