press_key
Press a specific key or key combination on the current browser page to trigger actions such as submitting forms, moving through fields, or selecting content.
Instructions
在当前页面按键,如 Enter、Escape、Tab、ArrowDown、PageDown,或组合键 Control+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": {
"key": "<key>"
},
"name": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | 按键名,参见 Playwright keyboard.press 的写法 |