sandboxes
Set who controls a browser window (beta)
Changed onBeta: give the window to a person ("user") or back to the attached sandbox ("agent"). It takes effect at once and does not wait for anyone. While a person has control, the attached sandbox's commands that read or act on the page fail with a "human has control" error, and it receives no page content. The window's current controller is in the browser's attachments.
post/api/v2/sandboxes/browsers/{name}/attachments/{attachment_id}/controller
Request
- Base URLhttps://api.smith.langchain.com
- URLhttps://api.smith.langchain.com/api/v2/sandboxes/browsers/{name}/attachments/{attachment_id}/controller
- Auth
- API key in header X-API-Key
- or API key in header X-Tenant-Id
- or HTTP bearer
Path parameters
namestring required
Browser name or ID
attachment_idstring required
Attachment ID
Request body
Response
OK
Changes
- info
endpoint added
- info