# Agent browser input and the user's keyboard focus Read this before changing how agent browser commands deliver mouse, key or text input to a browser page, or before adding a `webContents.focus()` call on a page an agent drives. Background: issue [#20595](https://github.com/stablyai/orca/issues/20595), with #16674, #12912, #16410, #19297, #20533, #26338 and #8139. ## The rule Agent input reaches the page it targets and nothing else. It never moves the user's keyboard focus, and it never lands in whatever the user is typing into. Only an explicit user-facing focus request (`tab switch --focus`) may reveal a page, and even that does not hand it OS focus. ## Why `` makes this hard (measured, Electron 43) A `` guest is an inner WebContents in the window's frame tree. Chromium routes input by that tree's focus, not by which debugger the command arrived on. A hidden-window probe (host `