key
Simulate keyboard input on a focused browser element or tab, including individual presses and chords such as Enter, Escape, Tab, and Ctrl+A.
Instructions
Press a key or chord on the focused element, e.g. "Enter", "Escape", "Tab", "ArrowDown", "Backspace", "ctrl+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": {
"tabId": "<tabId>",
"key": "<key>"
},
"name": "key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| ref | No | Element reference from read_page or find, e.g. "e12" | |
| tabId | Yes | Tab ID, from tabs_list or tab_create |