Computer API
The following functions are designed for language models to use in Open Interpreter, currently only supported in OS Mode.
Display - View
Takes a screenshot of the primary display.
Display - Center
Gets the x, y value of the center of the screen.
Keyboard - Hotkey
Performs a hotkey on the computer
Keyboard - Write
Writes the text into the currently focused window.
Mouse - Click
Clicks on the specified coordinates, or an icon, or text. If text is specified, OCR will be run on the screenshot to find the text coordinates and click on it.
Mouse - Move
Moves to the specified coordinates, or an icon, or text. If text is specified, OCR will be run on the screenshot to find the text coordinates and move to it.
Mouse - Scroll
Scrolls the mouse a specified number of pixels.
Clipboard - View
Returns the contents of the clipboard.
OS - Get Selected Text
Get the selected text on the screen.
Mail - Get
Retrieves the last number
emails from the inbox, optionally filtering for only unread emails. (Mac only)
Mail - Send
Sends an email with the given parameters using the default mail app. (Mac only)
Mail - Unread Count
Retrieves the count of unread emails in the inbox. (Mac only)
SMS - Send
Send a text message using the default SMS app. (Mac only)
Contacts - Get Phone Number
Returns the phone number of a contact name. (Mac only)
Contacts - Get Email Address
Returns the email of a contact name. (Mac only)
Calendar - Get Events
Fetches calendar events for the given date or date range from all calendars. (Mac only)
Calendar - Create Event
Creates a new calendar event. Uses first calendar if none is specified (Mac only)
Calendar - Delete Event
Delete a specific calendar event. (Mac only)