midscene_aiKeyboardPress
Press keyboard keys during automated web testing with AI-powered element targeting for precise interaction simulation.
Instructions
Presses a specific key on the keyboard.
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": "midscene_aiKeyboardPress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The web key to press, e.g. 'Enter', 'Tab', 'Escape', etc. | |
| locate | No | Optional: natural language description of the element to press the key on | |
| deepThink | No | If true, uses a two-step AI call to precisely locate the element |