Press
pressSimulates a keyboard key input, optionally scoped to a selector, to trigger page interactions and test browser workflows.
Instructions
Press a key, optionally scoped to a selector.
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 | ||
| pageId | No | Page id. Defaults to the active page. | |
| selector | No | ||
| timeoutMs | No | Operation timeout in milliseconds. |