Act in the agent's browser during a hand-off [write]

Changed on

One action by the caller in the agent's browser, under the same conditions as reading it: {type: "click", x, y} (CSS pixels of the frame), {type: "text", text} (at most 2,000 characters, typed where the focus is), {type: "key", key} (Enter, Tab, Backspace, Escape, the arrows or Space) or {type: "scroll", x, y, deltaY}. Answers the page afterwards.

post/sessions/{id}/browser-handoff

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/sessions/{id}/browser-handoff
  • Auth
    HTTP bearer

Path parameters

idstring required

The session id

Request body

type'click' | 'text' | 'key' | 'scroll' required
xnumber
ynumber
textstring
key'Enter' | 'Tab' | 'Backspace' | 'Escape' | 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight' | 'Space'
deltaYnumber

Response

The agent's browser: open: false when none is running, else the page as a JPEG (base64) with its CSS width and height, address and title.

Changes