Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

2.1 KB
Raw Blame

Keyboard

Low-level keyboard input commands for typing text and dispatching key events.

keyboard type

Type text by dispatching individual key events (keyDown/keyUp) for each character. This triggers keyboard event listeners that some applications depend on.

pinchtab keyboard type "hello world"

Performance note: For strings longer than 20 characters, PinchTab uses a hybrid approach to avoid CDP timeouts: the first and last 5 characters are typed with real key events, while the middle portion uses Input.insertText. This provides realistic keystroke simulation at boundaries while keeping performance acceptable for long strings.

keyboard inserttext

Insert text directly without dispatching key events. Equivalent to pasting text — faster but won't trigger keydown/keypress/keyup listeners.

pinchtab keyboard inserttext "[email protected]"

Use inserttext when:

  • You need maximum speed
  • The target doesn't rely on key event listeners
  • You're filling forms programmatically

Use type when:

  • The application validates input on keypress
  • You need to trigger autocomplete or live search
  • You're simulating realistic user input

keydown / keyup

Hold or release individual keys. Useful for modifier keys (Shift, Ctrl, Alt) or testing key-hold behaviors.

pinchtab keydown Shift
pinchtab keyup Shift

keyboard type sends each character's text as given and sets no modifier flags on its key events, so do not rely on a held keydown Shift to change the typed text. For a modified key, use a press chord such as Shift+ArrowLeft.

API Equivalent

keydown and keyup are the keydown / keyup action kinds with a key field.

curl -X POST http://localhost:9867/action \
  -H "Content-Type: application/json" \
  -d '{"kind":"keyboard-type","text":"hello world"}'

curl -X POST http://localhost:9867/action \
  -H "Content-Type: application/json" \
  -d '{"kind":"keyboard-inserttext","text":"hello world"}'

Related Pages

  • Type — Type into a specific element by selector/ref
  • Fill — Set input value directly
  • Press — Press a single key