func (
r *SandboxBrowserAttachmentService) SetController(ctx context.Context,
name string,
attachmentID string,
body SandboxBrowserAttachmentSetControllerParams,
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
name* | string | |
attachmentID* | string | |
body* | SandboxBrowserAttachmentSetControllerParams | |
opts* | ...option.RequestOption |
Beta: give the window to a person ("user") or back to the attached sandbox.
Beta: 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.