ui_send_keys_batch
Send multiple key sequences in one call while holding focus, eliminating race conditions from terminal focus stealing. Useful for arrow navigation, typing, and keyboard shortcuts.
Instructions
Send a batch of key sequences in a single call, holding focus throughout.
Solves the race condition where the terminal steals focus between individual send_keys calls. The bridge holds foreground + element focus for the entire batch, sending keys with configurable delay.
Use this for: arrow navigation (20x DOWN), typing sequences, keyboard shortcuts.
Args: keys: List of key strings, each sent separately with delay. Example: ["{DOWN}", "{DOWN}", "{DOWN}"] for 3 arrow presses. automation_id: Target element to focus before sending. delay_ms: Milliseconds between each key (default 50ms).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| automation_id | No | ||
| delay_ms | No |