You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(browser): add site-tool discovery and execution #26
Browser backlog item 22 of 29. Phase: Settings and developer features. This is ordered planning, not a claim that Codex implements every item. Items 24–29 are optional additions.
Acceptance criteria
Verify the supported site-tool protocol, then expose origin-bound tool discovery.
Display requested actions and enforce permission before execution.
Test malicious metadata, navigation, tool changes, cancellation and revoked access.
Reuse existing Chromium/Electron/OS facilities where available. Preserve main-process ownership and permission enforcement, add no placeholder controls, use existing i18n patterns, and test behavior with synthetic fixtures. Document platform limitations. Baseline: browser-tabs at 47fef3e; see packages/cm-browser/README.md and password-security.md.
945c2f120 — chore(desktop): upgrade Electron runtime
2d10f66b4 — feat(browser): add WebMCP site tools
Behavior:
Upgrades to Electron 44.3.0 / Chromium 152 and enables Chromium's WebMCP Blink feature without exposing general CDP access.
Adds bounded top-document browser_list_site_tools discovery. Cross-origin child tools, frame IDs, DOM IDs, and registration stack traces are excluded; metadata is labelled untrusted.
Adds browser_execute_site_tool with read gating, named per-origin Ask approval, and fresh default-cancel native consent showing task, tab, source, tool, and exact JSON arguments.
Binds tool ref/revision, argument hash, source URL/origin, access, owner, task, allowlist, deadline, and final sidecar delivery. Navigation, registration changes, revocation, cancellation, and stale refs fail closed.
Caps arguments at 8 KiB, the aggregate discovery inventory at 48 KiB, and returned untrusted content at 16 KiB. Cancellation calls Chromium WebMCP.cancelInvocation.
Documents the experimental-runtime and platform limits in packages/cm-browser/README.md.
The native fixtures use a temporary origin-isolated loopback site and synthetic consent seams. They do not establish packaged/macOS/Linux behavior, physical-dialog accessibility, authenticated third-party compatibility, or external security assurance; those remain tracked separately, especially #34.
Activity
trmosala commentedon Sep 18, 2026
Implemented and pushed on
browser-tabs.Commits:
945c2f120—chore(desktop): upgrade Electron runtime2d10f66b4—feat(browser): add WebMCP site toolsBehavior:
browser_list_site_toolsdiscovery. Cross-origin child tools, frame IDs, DOM IDs, and registration stack traces are excluded; metadata is labelled untrusted.browser_execute_site_toolwith read gating, named per-origin Ask approval, and fresh default-cancel native consent showing task, tab, source, tool, and exact JSON arguments.WebMCP.cancelInvocation.packages/cm-browser/README.md.Verification:
--site-tools: discovery, execution, cancellation, navigation invalidation, removal — PASSThe native fixtures use a temporary origin-isolated loopback site and synthetic consent seams. They do not establish packaged/macOS/Linux behavior, physical-dialog accessibility, authenticated third-party compatibility, or external security assurance; those remain tracked separately, especially #34.