Expand description
Agent API endpoints.
These endpoints allow AI agents to interact with the running application through structured HTTP requests, without needing native desktop control.
§How it works
- The browser app includes the rdesktop bridge script
- The bridge script periodically sends DOM snapshots to the server
- Agents query the server for DOM/state information
- Agents send actions to the server, which forwards them to the browser
§Design Philosophy
Instead of requiring agents to take screenshots and use vision models to understand the UI, the Agent API provides direct DOM access and structured state information. This is:
- Faster: No screenshot encoding/decoding overhead
- More reliable: Exact element selectors, not pixel coordinates
- More informative: Full DOM tree, computed styles, accessibility info
- Easier to test: Standard HTTP endpoints, can be scripted
Structs§
- Action
Result - Result of an action execution.
- Agent
Action - An action that an agent can execute on the UI.
- DomSnapshot
- Response from a DOM query.
- Element
Info - Response from an element query.
- Element
Query - Query parameters for element selection.
Enums§
- Action
Type - Types of actions agents can execute.
Functions§
- execute_
action - POST /rdesktop/agent/action
- get_dom
- GET /rdesktop/agent/dom
- get_
state - GET /rdesktop/agent/state
- query_
elements - GET /rdesktop/agent/elements?selector=…
- send_
ipc - POST /rdesktop/agent/ipc
- take_
screenshot - GET /rdesktop/agent/screenshot