Press keys
press_keysSends keyboard keys or shortcuts to an app, can run multiple key combinations in order, and optionally returns a screenshot to verify the result.
Instructions
Press a key or shortcut (not for browser navigation: use browser_open/browser_navigate), e.g. "enter", "cmd+s", "cmd+shift+p", "tab", "esc", "down". Several separated by spaces run in order: "cmd+a delete".
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_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App to send the keys to (brought to the front first); default: the app you last worked in | |
| keys | Yes | ||
| look_after | No | Return a fresh screenshot of the front window after the action, to check the result |