UpdateBrowserStream
Source:
src/AWS/BedrockAgentCore/UpdateBrowserStream.ts
Updates a browser session’s automation stream.
Bind a BrowserCustom inside a function runtime to call the
AgentCore data-plane API against it. Provide AgentCore.UpdateBrowserStreamHttp
on the Function effect to implement the binding.
Browser Automation
Section titled “Browser Automation”// initconst updateBrowserStream = yield* AgentCore.UpdateBrowserStream(browser);
return { fetch: Effect.gen(function* () { // runtime yield* updateBrowserStream({ sessionId, streamUpdate: { automationStreamUpdate: { streamStatus: "ENABLED" }, }, }); return HttpServerResponse.json({ updated: true }); }),};