send_keys
Send keyboard keys or combinations like 'tab', 'enter', or 'ctrl+a' to the focused element or a specific element using an optional CSS selector. Ideal for simulating user keystrokes during browser automation.
Instructions
Send a key or key combination to the focused element (or a specific element if selector is given). Use key names like 'tab', 'enter', 'escape', 'up', 'down', 'f5', or combos like 'ctrl+a', 'shift+tab'.
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": "send_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | css | |
| key | Yes | Key name or combo e.g. 'tab', 'ctrl+a', 'enter' | |
| timeout | No | ||
| selector | No | Element to focus before sending (optional) |