midscene_aiKeyboardPress
Simulates keyboard key presses on web elements using AI. Define the key (e.g., 'Enter', 'Tab') and optionally specify the element for precise interaction.
Instructions
Presses a specific key on the keyboard.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
deepThink | No | If true, uses a two-step AI call to precisely locate the element | |
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 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"deepThink": {
"default": false,
"description": "If true, uses a two-step AI call to precisely locate the element",
"type": "boolean"
},
"key": {
"description": "The web key to press, e.g. 'Enter', 'Tab', 'Escape', etc.",
"type": "string"
},
"locate": {
"description": "Optional: natural language description of the element to press the key on",
"type": "string"
}
},
"required": [
"key"
],
"type": "object"
}