Python SDK for the shared Chrome Bridge service
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chrome_bridge_sdk-0.4.0.tar.gz.
File metadata
- Download URL: chrome_bridge_sdk-0.4.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b48c3640455c06b861a360f0023684ea0b00fb5717a41b33d5088dbbe7d66ed5
|
|
| MD5 |
5c77928c0a5b9b4a079c6fae542ae590
|
|
| BLAKE2b-256 |
f525752ff1df9e87076bf5128945aad2cf4f0da719ea9353e6d4a073ea8ed53f
|
Provenance
The following attestation bundles were made for chrome_bridge_sdk-0.4.0.tar.gz:
Publisher:
release-pypi.yml on kiarina/chrome-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chrome_bridge_sdk-0.4.0.tar.gz -
Subject digest:
b48c3640455c06b861a360f0023684ea0b00fb5717a41b33d5088dbbe7d66ed5 - Sigstore transparency entry: 2237747709
- Sigstore integration time:
-
Permalink:
kiarina/chrome-bridge@9d5c7d38746bd8ccd16ba8fbc009fd35d8a894a2 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/kiarina
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@9d5c7d38746bd8ccd16ba8fbc009fd35d8a894a2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file chrome_bridge_sdk-0.4.0-py3-none-any.whl.
File metadata
- Download URL: chrome_bridge_sdk-0.4.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7f3679bdba75fb17d7fdd8104781a0422e4c34f7bc77a52bb287e9b85301059
|
|
| MD5 |
6c3f4d4e2b9f47ff601f132d5906995b
|
|
| BLAKE2b-256 |
388e9137626f9b4e35aeb29e8b75cd7462981f0aedce0d3af541cc62098f99fe
|
Provenance
The following attestation bundles were made for chrome_bridge_sdk-0.4.0-py3-none-any.whl:
Publisher:
release-pypi.yml on kiarina/chrome-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chrome_bridge_sdk-0.4.0-py3-none-any.whl -
Subject digest:
c7f3679bdba75fb17d7fdd8104781a0422e4c34f7bc77a52bb287e9b85301059 - Sigstore transparency entry: 2237748345
- Sigstore integration time:
-
Permalink:
kiarina/chrome-bridge@9d5c7d38746bd8ccd16ba8fbc009fd35d8a894a2 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/kiarina
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@9d5c7d38746bd8ccd16ba8fbc009fd35d8a894a2 -
Trigger Event:
push
-
Statement type: