Desktop control

Let the agents you run in ironpet read and operate other Mac apps through Accessibility, with approval for anything risky.

Desktop control lets the agents you run in ironpet read and operate other Mac apps: read a window, press a button, fill a field, pick an option, press a key. It works through Accessibility, so there's nothing to install and no separate permission. It uses the Accessibility access ironpet already has.

It's off by default. Turn it on under Settings → Screen → Desktop control. macOS asks for Accessibility if ironpet doesn't have it yet.

Agents use it for what only an app's window can do. When a command, an API or a file does the job, they use that instead.

The tools

Agents get twelve desktop_* MCP tools. The bundled ironpet-desktop skill tells them how to use them.

ToolWhat it does
desktop_snapshotReads a window live and returns an outline, one element per line, each with a ref. It can read one subtree, or list the elements with one role
desktop_findLists the elements that match a role, name or value
desktop_pressPresses a button, menu item, checkbox or link
desktop_set_valueReplaces the value of a text field
desktop_typeInserts text at the caret
desktop_focusFocuses an element, or raises a window
desktop_selectPicks an option in a popup, combo box, list, table or outline
desktop_checkChecks or unchecks a checkbox, switch or radio button
desktop_expandExpands or collapses a disclosure triangle, outline row or popup
desktop_keyPresses a key or combo, such as ↩, ⎋ or ⌘L, in one app
desktop_open_urlOpens an http or https address in a new browser tab
desktop_screenshotTakes a picture of one window, not the whole screen. Needs Screen Recording

A ref belongs to the last read of a window and works only while its element is unchanged, so an agent reads the window again after it acts. ironpet sends no mouse events and doesn't move your pointer, so an element with no Accessibility action and no key for it can't be operated.

Safety

These rules apply whatever the settings say:

  • Password fields are never operated, and no key is sent while one has the focus. Password managers, apps on the screen capture exclusion list and private browser windows are never read or operated.
  • Nothing works while screen capture is paused or the screen is locked.
  • An action on an element or window whose text says send, pay, delete, submit or buy (and similar words such as purchase, check out and transfer) waits for you to press Approve in a bubble. Reject, or no answer in two minutes, fails the action.
  • ⌘↩, ⌘Q and ⌘W always wait for Approve. ↩ and other ⌘ combos also wait when the window or element says send, pay, delete, submit or buy. Letters, ⇥, ⎋ and the arrows never ask.
  • Only http and https addresses can be opened, never ones with a user name or password in them, and never hosts that screen capture is set never to read.

The chat's own approval card still applies on top of this, unless the agent's mode doesn't ask.

The check for words like "send" reads text, so a button with only an icon, or a label in another language, doesn't trigger it. See SECURITY.md for the limits.

The log

Every action is logged with its time, app, window, element, action and outcome. Settings → Screen → Desktop control lists the latest ones, and the log is kept for 30 days.