Press Keyboard Key
gpm_browser_pressSimulates key presses or key combinations (e.g., Enter, Control+A) in a GPM anti-detect browser, optionally focusing a target element first via a selector.
Instructions
Nhấn phím hoặc tổ hợp phím (vd "Enter", "Tab", "Escape", "Control+A", "PageDown").
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": "gpm_browser_press"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Tên phím Playwright (vd "Enter", "Control+A") | |
| selector | No | Tuỳ chọn: focus vào phần tử này trước khi nhấn phím | |
| profile_id | No | ID của profile GPM đang kết nối CDP (có thể bỏ trống nếu chỉ có 1 profile đang kết nối) | |
| timeout_ms | No |