osmates agent
Drive machines as an AI agent, in an agent's session, with what the MCP tools return.
osmates agent <subcommand>For AI agents that run shell commands; the person's commands are the rest of osmates. Each command opens or joins the session of the program that runs it, found above it as for osmates mcp: OSMates asks the person on the Mac before it acts on a machine, and the session's lease, snapshot and recording last until that program exits. A command runs one MCP tool: call runs any of them with its JSON arguments, tools lists them and guide prints how to use them. --json prints the tool's structured content on one line. Images go to ~/Library/Caches/com.osmates.OSMates/agent, each named on standard error as image: <path>. A failure ends standard error with MCP's error object and exits 1, 65 when what was given is wrong, or 75 when the same command can work later; a name of a tool in it runs as osmates agent call <tool> '<arguments>'.
Subcommands
osmates agent screenshotTake a screenshot, or zoom into a region; standard error names the image.osmates agent waitWait until the screen changes, or until it is still.osmates agent textRead the text on the screen, with a box for each line.osmates agent elementsList the controls on the screen, with refs and boxes, in Windows, macOS and a Linux desktop.osmates agent actAct on a control by the ref elements gave it.osmates agent clickClick at a point.osmates agent moveMove the pointer.osmates agent dragDrag through points.osmates agent scrollTurn the scroll wheel at a point.osmates agent keyPress keys, such as return, shift+a, ctrl+c or cmd+space.osmates agent actionsSend a batch of input actions, as input_actions takes them.osmates agent typeType text, as keystrokes or through the guest's clipboard.osmates agent clipboardRead or write a machine's clipboard.osmates agent clipboard readRead the clipboard; standard error names an image it holds.osmates agent clipboard writePut text, an image or both on the clipboard.
osmates agent resizeChange the display's size; take a new screenshot after.osmates agent sign-inSign in to the machine's desktop with its password.osmates agent callRun any OSMates tool with its MCP arguments, as one JSON object.osmates agent toolsList the OSMates tools, or print one's description and arguments.osmates agent guidePrint how to use the OSMates tools, as MCP clients read it.