40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"name": "chrome_keyboard",
|
|
"description": "Simulate keyboard input on a web page. Supports single keys (Enter, Tab, Escape), key combinations (Ctrl+C, Ctrl+V), and text input. Can target a specific element or send to the focused element.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"keys": {
|
|
"type": "string",
|
|
"description": "Keys or key combinations to simulate. Examples: \"Enter\", \"Tab\", \"Ctrl+C\", \"Shift+Tab\", \"Hello World\"."
|
|
},
|
|
"selector": {
|
|
"type": "string",
|
|
"description": "CSS selector or XPath for target element to receive keyboard events."
|
|
},
|
|
"selectorType": {
|
|
"type": "string",
|
|
"enum": ["css", "xpath"],
|
|
"description": "Type of selector (default: \"css\")."
|
|
},
|
|
"delay": {
|
|
"type": "number",
|
|
"description": "Delay between keystrokes in milliseconds (default: 50)."
|
|
},
|
|
"tabId": {
|
|
"type": "number",
|
|
"description": "Target tab ID. If omitted, uses the current active tab."
|
|
},
|
|
"windowId": {
|
|
"type": "number",
|
|
"description": "Window ID to select active tab from (when tabId is omitted)."
|
|
},
|
|
"frameId": {
|
|
"type": "number",
|
|
"description": "Target frame ID for iframe support."
|
|
}
|
|
},
|
|
"required": ["keys"]
|
|
}
|
|
}
|