Type and click on a Mac
mac_inputSends real keyboard and mouse input, as a person at the Mac would, also on the lock screen and in password dialogs. action: type (text), key (keys such as return or cmd+q), click, move or scroll (x, y), password (types the login password into the focused field), unlock (a locked screen) or size. Answers with a screenshot unless screenshot is false. A retry types again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | For click, move and scroll: from the left, as in screenshot_mac's image (1440 wide). | |
| y | No | For click, move and scroll: from the top, as in screenshot_mac's image (900 high). | |
| keys | No | For key: names or combinations, pressed in order, like ["cmd+a", "backspace"] | |
| text | No | For type: up to 500 characters; for longer text, pbcopy it with exec_mac, then key cmd+v | |
| steps | No | For scroll: negative up, positive down | |
| action | Yes | type, key, click, move, scroll, password (types the Mac's login password), unlock (opens a locked screen) or size. | |
| button | No | For click: left (default) or right. | |
| double | No | For click: true for a double click. | |
| screenshot | No | false skips the screenshot taken after the input (default true). | |
| session_id | No | Mac session ID (ses_…). Optional: without it, the account's running Mac. |