press-key
Simulate keyboard key presses on web elements to automate browser interactions within AdsPower profiles.
Instructions
Press the key
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 | The key to press, eg: "Enter" | |
| selector | No | The selector of the element to press the key, find from the page source code |