search_files
Search your macOS system for files by name, content, or type. Uses Spotlight to locate documents, images, code, and more with optional filters.
Instructions
Search for files using macOS Spotlight (mdfind). Much faster than find — searches the entire system instantly. Use for finding files by name, content keywords, or type. macOS only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Optional type filter: 'pdf', 'image', 'video', 'audio', 'folder', 'application', 'code', or 'document'. | |
| limit | No | Maximum results to return (1–200, default 50). | |
| query | Yes | File name fragment or Spotlight query (e.g. 'budget', 'author:Alice'). | |
| scope | No | Directory to restrict the search to (default: home directory). | ~ |