chrome_keyboard
Simulate keyboard events in a browser to type text, trigger shortcuts like Ctrl+C, or send special keys such as Enter and PageUp, optionally targeting a specific element first.
Instructions
Simulate keyboard events in the browser environment, optionally targeting a specific element. Supports single keys, combinations (e.g. Ctrl+C), and special keys (e.g. Enter, Tab, PageUp, PageDown, ArrowUp, ArrowDown, ArrowLeft, ArrowRight).For example, use the PageDown and PageUp keys to scroll the page down and up, respectively.For multiple keys in sequence, seperate them with a comma.
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": {
"envId": "<envId>",
"keys": "<keys>"
},
"name": "chrome_keyboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Key sequence, supports combinations (e.g. Ctrl+C) | |
| delay | No | Delay between keys in ms | |
| envId | Yes | Environment ID for the browser environment to operate. | |
| selector | No | Target element selector (optional) to focus before typing. If not provided, types to the active element or page. |