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

Tesla app adds Shortcuts support for vehicle controls »
The Tesla app has updated with a set of actions for Shortcuts to control your vehicle – check out the full list, and my suggestions for improvement.
Apple Intelligence Shortcuts for Real Life »
Stephen Robles has 17 new real-life use cases for putting the Use Model action for Apple Intelligence to work in Shortcuts.
Apple introduces Creator Studio, an inspiring collection of creative apps »
Final Cut Pro, Logic Pro, Pixelmator Pro, Motion, Compressor, and MainStage — plus new AI features and premium content in Keynote, Pages, and Numbers — come together in a single subscription.
Bike: Automate with Shortcuts »
Bike Outliner for Mac has added 14 new actions to Shortcuts to automate your outlines, including a video tutorial.