press
Focus a webpage element and send keyboard keys like Enter, Tab, or Escape to automate browser interactions.
Instructions
Focus an element and press a keyboard key (e.g. Enter, Tab, Escape, ArrowDown).
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": {
"selector": "<selector>",
"key": "<key>"
},
"name": "press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key name, e.g. Enter, Tab, Escape, ArrowDown. | |
| selector | Yes | CSS or XPath selector of the element to focus. |