🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ 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...

Versionv1.0.1
Installs1
πŸ“‹ 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:

  • System Settings β†’ Privacy & Security β†’ Accessibility
  • Turn on access for the actual host process running the agent, often openclaw-gateway, Terminal, or the active terminal host
  • If screen capture is blocked

    Tell the user to enable:

  • System Settings β†’ Privacy & Security β†’ Screen & System Audio Recording (or Screen Recording on older macOS)
  • Grant permission to the actual host process running the command
  • 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.

    View on ClawHub
    TERMINAL
    clawhub install macscreenshot

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’