BedrockAgentCoreClient.invoke_browser
rboto-bedrock-agentcore==0.4.0 · Service index · Types
Model summary (excerpt): Invokes an operating system-level action on a browser session in Amazon Bedrock AgentCore. This operation provides direct OS-level control over browser sessions, enabling mouse actions, keyboard input, and screenshots that the WebSocket-based Chrome DevTools Protocol (CDP) cannot handle — such as interacting with print dialogs, context menus, and JavaScript alerts. You send a request with...
Install and imports
from rboto import BedrockAgentCoreClient
from rboto_bedrock_agentcore.types import (
BrowserAction,
InvokeBrowserOutput,
)
Signature
async def invoke_browser(
*,
browser_identifier: str,
session_id: str,
action: BrowserAction,
) -> InvokeBrowserOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
browser_identifier |
Yes | The unique identifier of the browser associated with the session. This must match the identifier used when creating the session with StartBrowserSession . |
session_id |
Yes | The unique identifier of the browser session on which to perform the action. This must be an active session created with StartBrowserSession . |
action |
Yes | The browser action to perform. Exactly one member of the BrowserAction union must be set per request. |
Output
InvokeBrowserOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
result |
BrowserActionResult | None |
Always present | BrowserActionResult |
session_id |
str |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
BrowserAction, InvokeBrowserOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_bedrock_agentcore.exceptions:
AccessDeniedError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.