GetBrowserSession
Source:
src/AWS/BedrockAgentCore/GetBrowserSession.ts
Reads a browser session’s configuration, status, and stream endpoints.
Bind a BrowserCustom inside a function runtime to call the
AgentCore data-plane API against it. Provide AgentCore.GetBrowserSessionHttp
on the Function effect to implement the binding.
Browser Sessions
Section titled “Browser Sessions”// initconst getBrowserSession = yield* AgentCore.GetBrowserSession(browser);
return { fetch: Effect.gen(function* () { // runtime const result = yield* getBrowserSession({ sessionId }); return HttpServerResponse.json({ status: result.status }); }),};