press
Sends a keyboard key to a page element matched by CSS selector or role/name, triggering the intended interaction in a specified browser tab.
Instructions
Press a key on one element, targeted by css or role and optional name.
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": {
"tab_id": "<tab_id>",
"key": "<key>"
},
"name": "press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | ||
| key | Yes | ||
| name | No | ||
| role | No | ||
| tab_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |