Computer Use Recovery

Recover from FocusFailure and wrong-window input when using computer-use-mcp.

zavora-ai Updated
An original night landscape painted by Astra through Computer Use MCP

File contents

Focus / window recovery

When a mutating tool returns focus_failed or similar:

suggestedRecovery Action
activate_window activate_window(requestedWindowId) then retry
unhide_app unhide_app → wait → activate_window → retry
open_application open_application → wait → retry

If a third-party app steals focus after activation, retry once with focus_strategy: "prepare_display", then unhide_app for any hiddenBundleIds when done.

Always re-resolve window_id via list_windows if the target window may have moved or closed.

zavora-ai/computer-use-mcp commit d5e7766116

Frequently asked questions

npx get-skill add zavora-ai/computer-use-recovery