PSA: AI Terminal bots can query macOS Spotlight using mdfind

For anyone using Claude Code or OpenClaw, try querying Spotlight with Apple's own Terminal tool `mdfind.`

From Cheng Lou on X:

Public service announcement for all of you running Claude Code/Clawd: macOS’ Spotlight comes as a terminal tool, mdfind, that can fuzzy & exact query your entire computer in real time. Ask your bot to use it!

No RAG, no prescriptive structure, no external tool, super optimized

Super useful if you’re using something like OpenClaw (renamed from Clawd) for advanced AI access to your Mac.

Plus, you can run shortcuts from the command line as well.

View the original.

Posts You Might Like

Arc Search Updated To Be Usable on iPad, Tablet Design Comes Later »
The Browser Company has updated Arc Search to work on iPad – but they're leaving a fully "reimagined" tablet version for later and getting you a usable version now.
Send Your Feedback to Apple About App Intents
If you're a developer working on App Intents, the team at Apple wants to hear from you – see this post from engineering manager Michael Gorbach.
The iPhone’s Today View Is The Most Convenient Place to Run Your Shortcuts »
In his iPhone setup video, Stephen Robles mentioned how he finds the Today view off to the left of your iPhone Home Screen is the best place to use Shortcuts – I agree.
How to integrate Siri and Apple Intelligence into your app to query onscreen content »
Jordan Morgan has shared another excellent App Intents guide, this time setting developers up so users can query on-screen content using Apple Intelligence.