Skip to main content

Module browser_control_types

Module browser_control_types 

Source
Expand description

The request types of the Browser actions that take back, take, give up and report on control of a pane (retake, take_control, release, handoff_status), zoom a pane (zoom) and find what is at a point of a screenshot (locate). Re-exported by api_types, where the rest of the browser requests are.

Structs§

ActPoint
Where a click or a drag in a canvas is: pixels of the canvas as UI screenshot with canvas shows it at the size it was drawn (from its top left). A click has x and y; a drag also has to_x and to_y, where the button is let go.
UiBrowserHandoffStatusRequest
POST /api/v1/ui/browser/handoff_status — backs Browser’s handoff_status: what became of a hand-off the agent asked the person for. By handoff_id (the hand-off’s answer carries it), or the newest one on pane.
UiBrowserListRequest
POST /api/v1/ui/browser/list — backs Browser’s list: the browser panes the caller opened and still has.
UiBrowserLocateRequest
POST /api/v1/ui/browser/locate — backs Browser’s locate and click_at: what a click at a point of a screenshot would land on, as a reference (forms-in-frames spec §4.6).
UiBrowserReleaseRequest
POST /api/v1/ui/browser/release — backs Browser’s release: the agent stops driving a pane, which then has no driver. pane is required.
UiBrowserRequestRequest
POST /api/v1/ui/browser/request — backs Browser’s request_status and cancel_request: what became of a request the agent got “waiting for the person” for (docs/specs/SPEC_WAITING_CALLS_RETURN_AND_FREE_THE_TURN_2026_11_10.md), or take it down. By request (the waiting answer carries it), or the newest one on pane.
UiBrowserRetakeRequest
POST /api/v1/ui/browser/retake — backs Browser’s retake: the agent drives again a browser pane it lost to the person’s Take over, once they gave it back. pane is required: it names the pane that was lost.
UiBrowserScrollRequest
POST /api/v1/ui/browser/scroll - backs Browser’s scroll: turn the wheel over a pane’s page by dx and dy CSS pixels (right and down; negative left and up), or bring the element ref of the last snapshot into view. One of the two.
UiBrowserShowRequest
POST /api/v1/ui/browser/show — backs Browser’s show: turn the caller’s background session pane into a floating pane the person sees.
UiBrowserTakeControlRequest
POST /api/v1/ui/browser/take_control — backs Browser’s take_control: the agent drives a browser pane it did not open (found with Pane layout). pane is required. allowed_origins limits it to those sites, as open does; without it the pane is limited to the site it is on.
UiBrowserZoomRequest
POST /api/v1/ui/browser/zoom — zoom a browser pane the agent drives, or put it back (docs/specs/SPEC_BROWSER_PANE_AGENT_ZOOM_2026_11_10.md). Exactly one of factor, width, fit and reset.

Type Aliases§

UiBrowserHideRequest
POST /api/v1/ui/browser/hide — backs Browser’s hide: put a floating pane the caller opened and the person sees back in the background. It takes the same arguments as show.