press
Simulate keyboard input such as Enter, Escape, Tab, or Control+A in a webview, optionally targeting an element by selector or snapshot ref.
Instructions
Press a key, e.g. Enter, Escape, Tab, Control+a.
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": "press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| ref | No | ref from snapshot, e.g. e3 | |
| tab | No | tab id, defaults to current | |
| selector | No | CSS selector | |
| request_timeout | No | Outer page request deadline in milliseconds; defaults to at least 30000 |