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

App Intents (Results) Tutorial: A Field Guide for iOS Developers »
Jordan Morgan put together a fantastic guide for App Intents on the Superwall blog – I quoted his Results section here.
How to Use ChatGPT With Siri on Your iPhone »
Nelson Aguilar from CNET shares how to take advantage of all that ChatGPT has to offer – using today's tech, like Shortcuts.
John Gruber: “The Vision Pro”
Gruber being Gruber, for Daring Fireball, on the Apple Vision Pro.
Fuoco lets you easily edit Portrait Mode photos »
If you've shot with Portrait Mode and want to change focus points—both in and out—Fuoco is the app for you.