press
Sends one key or chord to the focused window; OS-level modifiers and function keys reach native apps, plain keys go to the page. Returns a result and observation.
Instructions
Press a single key or key chord in the focused window.
Chords with Control, Alt or Windows modifiers and function keys are sent at operating-system level so they reach browser shortcuts and native apps; plain keys go to the page when the browser is in front. Pressing Enter while a risky control is focused asks the human first. Returns a RESULT line and a fresh observation.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | One key or chord in Playwright syntax: 'Enter', 'Escape', 'Tab', 'F2', 'Control+S', 'Alt+F4', 'Control+Shift+S'. Not a string of characters; use type_text for that. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |