按键
browser_pressPresses a specified key or key combination in the currently focused Chrome element, confirming the key name before and reporting success after.
Instructions
通用:在当前焦点按一个键。开始前显示键名,结束后显示是否成功。
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": "browser_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Playwright 键名,例如 Enter、Control+A |