zen_keypress
Dispatch synthetic keyboard events with modifier keys and optional text input for browser automation.
Instructions
Dispatch a synthetic keyboard event. Use modifiers like
{"ctrl": True, "shift": True}. Pass text to also insert characters
into editable targets.
Args: key: Key name, e.g. "Enter", "Tab", "Escape", "ArrowDown", "a". selector: Optional element to target. Defaults to document.activeElement. modifiers: {"ctrl"|"shift"|"alt"|"meta": True}. text: If set, also insert this text into editable targets.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>"
},
"name": "zen_keypress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| selector | No | ||
| modifiers | No | ||
| text | No | ||
| tab_id | No |