Spotlight-Suche
spotlight_searchSearch macOS Spotlight to locate files by full-text, file name, or raw query, and get their file paths.
Instructions
Durchsucht den macOS-Spotlight-Index (mdfind) nach Dateien: Volltext und Metadaten. Genau eine Suchart angeben: text (Freitext), name (Dateiname) oder query (rohe Spotlight-Abfrage). Liefert Dateipfade. Hinweis: geschützte Orte wie ~/Library/Mail liefern nur mit Full Disk Access Treffer.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "spotlight_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Teilstring im Dateinamen | |
| text | No | Freitext (Volltext + Metadaten), z. B. "Quartalsbericht" | |
| limit | No | Ausgabe auf so viele Pfade begrenzen (Vorgabe 50) | |
| query | No | Rohe Spotlight-Abfrage, z. B. kMDItemContentType == "com.adobe.pdf" | |
| onlyIn | No | Suche auf ein Verzeichnis begrenzen (absoluter Pfad) |