π¦ ClawHub
mac screenshot
by @mallocfeng
Capture macOS screenshots for the whole screen, a specific app window, or a precisely targeted desktop window using built-in system tools. Use when the user...
π Tips & Best Practices
If screencapture works for full screen but not for a window
Check whether the enumerated target has sharing = 1. If not, tell the user the app/window is not currently shareable for window capture and ask them to bring it to the front and try again.
If System Events says assistive access is not allowed
Do not rely on that path. Prefer the Swift + CoreGraphics method. If the user still wants UI-structure inspection, tell them to enable:
openclaw-gateway, Terminal, or the active terminal hostIf screen capture is blocked
Tell the user to enable:
If swift is not found
Tell the user to install Xcode Command Line Tools manually:
xcode-select --install
If that fails or they want the GUI path, tell them to install Xcode from the App Store or re-run the command after opening Software Update.
TERMINAL
clawhub install macscreenshot