Browser Control
Browser Control currently controls Google Chrome through the OneWorks extension. Its browser-facing contract is transport-neutral so future extension transports, such as Firefox, can implement the same capability without renaming the product.
- Call
chrome_capabilitiesbefore using a capability family for the first time. Missing permissions are recoverable: ask the user to grant the named group from the Chrome extension popup, then retry. The OneWorks page reports permission state but never grants Chrome permissions itself. - Discover targets with
chrome_windows,chrome_tabs, andchrome_frames. Never guess IDs or rely on an implicit current tab. - Reuse the returned
tab_id,frame_id, anddocument_id. Refresh the target/snapshot afterTARGET_NOT_FOUNDorDOCUMENT_CHANGED. - Prefer
execute_chrome_workflowfor ordered page-local work. Independent tab workflows may be submitted together withexecute_chrome_workflows. - High-risk operations return
CONFIRMATION_REQUIRED; describe the audit summary and wait for the user to approve it in the extension/OneWorks UI before retrying. - Prefer semantic operations. Use
chrome_raw,chrome_cookies.list_with_values,chrome_page.snapshot_sensitive, orchrome_page.type_sensitiveonly when the matching OneWorks advanced-access preference has been applied to the connected browser and capability discovery reports it enabled. Raw is a browser-session-wide superset of cookie/sensitive-field access and executes globally exclusively. Always supply the intendedtab_idand expected origin; the bridge and extension additionally negotiate and enforce an exact full-URL fingerprint without exposing query or fragment values. Review the R4 preview and obtain confirmation for every use. - Never claim access to Chrome Password Manager: Chrome exposes no extension API for reading or exporting saved passwords. Sensitive page operations cover only page fields, DOM, and storage. Do not request host file-system paths, host-process code execution, cross-origin bypasses outside the explicit Raw capability, or silent permission grants.