Skip to main content

chrome-bridge-sdk

Python SDK for using chrome-bridge directly without an MCP client.

See the changelog for user-visible changes.

from chrome_bridge_sdk import ChromeBridge, SessionStatus

chrome = ChromeBridge(status_callback=lambda status: print(status.value))

async with chrome.session() as session:
    tabs = await session.browser_tabs()
    await session.browser_tab_select(tab_id=tabs[0].id)
    snapshot = await session.browser_snapshot()
    print(snapshot.title, snapshot.snapshot)

ChromeBridge stores configuration only. Entering session() discovers or starts the shared managed server, waits for the extension and FIFO lease, maintains its heartbeat, and releases it on every context exit. SessionStatus callbacks can drive application logs or startup UI.

The 21 high-level methods return frozen typed models such as Tab, Snapshot, Screenshot, ConsoleEntry, and Recording. Python parameters use snake_case, including browser_drag(start_element=..., start_ref=..., end_element=..., end_ref=...); browser_type(..., submit=False) does not require the common default explicitly. Screenshot.image_bytes decodes its Direct API base64 data.

For LLM adapters, session.tool_definitions() returns JSON Schema dictionaries and session.call(method, arguments) returns the raw Direct API JSON result. SDK exceptions expose code, retryable, and outcome_unknown attributes. Calls with an unknown outcome are never automatically retried.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chrome_bridge_sdk-0.4.1.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chrome_bridge_sdk-0.4.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file chrome_bridge_sdk-0.4.1.tar.gz.

File metadata

  • Download URL: chrome_bridge_sdk-0.4.1.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chrome_bridge_sdk-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1b1a2d3bbcda4e975ba8b190c548894940943df8b524764f92f5cce621532c32
MD5 04e6eec2461038fe7b62ee43f21b0752
BLAKE2b-256 b2f82bbdc88c4b9f611a9018c4766ba484466b21be676ed49653703237562bc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for chrome_bridge_sdk-0.4.1.tar.gz:

Publisher: release-pypi.yml on kiarina/chrome-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chrome_bridge_sdk-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for chrome_bridge_sdk-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c4a813524642793614a298a5520ad09cd29dec90e83986d712a9f0dc1869bc2
MD5 0d250864680ea1ba1c3c451ff0c494a5
BLAKE2b-256 0b3dc494bd9e10c7272ef4f33c220e0648372a8d5c718166c333ef024496b55e

See more details on using hashes here.

Provenance

The following attestation bundles were made for chrome_bridge_sdk-0.4.1-py3-none-any.whl:

Publisher: release-pypi.yml on kiarina/chrome-bridge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page