press_key
Send keyboard keys such as Enter, Tab, Escape, or Ctrl+A to the focused element in a browser tab, then report navigation or page changes. Use after clicking or typing to trigger shortcuts and form actions.
Instructions
Press keys in a tab, e.g. "Enter", "Tab", "Escape" or "ctrl+a". Separate several with spaces.
The keys go to the focused element, so click or type first. Reports a navigation, or what changed on the page, like click. Paste shortcuts are refused, to keep the user's clipboard out of the page.
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": {
"keys": "<keys>"
},
"name": "press_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| tab_id | No |