Focus

Move focus to an element by selector or ref.

terminal
pinchtab focus e8
curl -X POST http://localhost:9867/action \  -H "Content-Type: application/json" \  -d '{"kind":"focus","ref":"e8"}'
Response
OK

CLI Flags

FlagDescription
--cssCSS selector instead of ref
--jsonFull JSON response
--tabTarget specific tab

This is useful before keyboard-only flows such as press Enter or type.

The CLI accepts unified selector forms: e8, #input, xpath://input, text:Email.

Selector lookup is limited to current frame scope (default: main). Use /frame before iframe focus calls.