jo32/DeepDeck--plugins-browser ↗★ 26
@deepdeck/dsh-browser
Site Agents and WebMCP Builder in the DeepDeck browser
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add 'github:jo32/DeepDeck#b6fbc012ff01f22abcfc6326fb3508c2f7fae7f1&path:plugins/browser'说明文档
阅读完整 README ↗DeepDeck Browser
Browser is a Cordis Host/Client plugin. Its launcher sits above Apps and opens a native, tabbed Electron browser with an address bar, back/forward/reload, find, zoom, downloads, and a persistent browsing profile. A site Agent panel reuses the Harness conversation and Composer.
The visual system takes cues from Libraries.dev:
neutral solid surfaces, fine borders, quiet blue accents and generous spacing.
Cards, tabs and the Composer have no decorative gradients or shadows; floating
menus retain one subtle shadow. A matching light palette follows the app's appearance. Browser
composes both palettes through theme.overrideTokens, so the original Composer
and portal menus use the same colors without changing the desktop preference.
The small SVG Agent sphere animates only during work, respects reduced motion,
and uses no external assets or animation dependencies.
New tabs open a full-width start page with one search field, the Host's saved sites, and actionable Site Agent / WebMCP Builder cards. Choosing a card focuses the search field; opening a site then prepares its existing Harness session in that mode once navigation completes. No Agent turn is sent automatically. The empty Agent panel stays closed on new tabs unless explicitly opened, and Downloads remains available. The start page adapts to panel and window width.
The Browser uses an integrated macOS tab/title bar, theme-aware surfaces and a
resizable Agent panel (drag its left edge, or focus the divider and use arrow
keys). Use/Builder lives in the site header. Text tabs distinguish Conversation,
WebMCP and Downloads. Conversation opens directly in Chat; Browser has no
Chat/Trajectory switch, session-log export action, or separate session toolbar.
Sessions previously viewed in Trajectory return to Chat on opening in Browser.
The compact Composer retains Harness send/stop,
model and access controls. The original home-hero dock remains mounted, including
send/working/stop interactions. Browser uses the home-hero plugin’s
DockedComposer presentation to keep the character small even in empty sessions. The new-tab page uses its
shared deepdeckCharacter service; small marks use its cached icon. The Agent panel opens directly into chat with its input docked at the bottom.
Empty sessions show a short welcome in the message area, without a large character
or a Start button. Existing conversations resume in the same layout.
HTTP(S) links in Agent replies open in a new Browser tab; middle-click opens a background tab. Electron routes the original Harness anchors without replacing the conversation or sharing the shell's profile or opener with the website.
Below 560 px of Agent-panel width, model/reasoning selection, Fast mode, Codex usage and session metrics move into More, leaving a single row of primary composer controls. Wider panels show them inline. The menu renders the original Cordis controls with their original stores and actions; unavailable controls stay hidden. Escape and outside clicks dismiss the menu, and resizing keeps the message draft intact.
Tabs support middle-click to close and a native context menu for new-tab-to-right, reload, duplicate, close, close others, close to the right, and reopen. The menu targets the clicked tab without activating it. Closing the active tab selects its right neighbour, or its left neighbour if it was last. Up to 20 closed tabs can be reopened during the desktop run, restoring their position and navigation history. Duplicate also preserves navigation history.
Website content has its own native context menu. Selected text can be copied, searched, or appended with its source URL to the site Agent's existing draft; the Agent never sends it automatically. Editable fields expose the browser's actual undo, redo, cut, copy, paste and select-all capabilities. Link actions, page navigation and Inspect are included when relevant. Menu actions are pinned to the originating document, so navigation closes the popup and invalidates its captured selection.
Tab shortcuts work while the shell, Agent composer, or website has focus: Cmd/Ctrl+T, W, Shift+T, 1–8 and 9 (last tab), Ctrl+Tab / Ctrl+Shift+Tab, and Ctrl+PageUp / PageDown. macOS also supports Cmd+Option+Left / Right and Cmd+Shift+[ / ]. Cmd/Ctrl+R reloads; adding Shift bypasses cache. Menu content and localization live in the plugin; native keyboard routing and system-menu presentation live alongside Electron's tab lifecycle.
Site Agents and WebMCP
Opening a website’s Conversation panel automatically prepares its Agent; Use / Builder selects its mode. Preparation creates or resumes a session without sending an Agent turn. Concurrent preparation reuses the same site session, even when its first caller switches tabs while it is being created. A site is an exact HTTP(S) origin, including scheme and port. Its conversation and workspace persist independently of browser tabs. Use and Builder modes share that same conversation. A running task remains bound to its original tab when you select another tab; the interface shows its target. Different sites have separate Agents.
Browser discovers actual registered WebMCP tools through Chromium's WebMCP domain
and observes additions/removals. API presence alone is not site support. Existing
site tools and generated WebMCP appear together with source and version details.
Each live page tool is registered directly in the Agent's Cordis tool scope with
its business input schema. The model calls a webmcp____ function
with business parameters; it does not pass a tool reference, page/frame IDs,
revision, or an extra input envelope. The old browser_webmcp_call entry point
is no longer exposed. Business fields that happen to use these names retain
their normal meaning.
The Host owns each callable's exact tab/frame/document/schema/version binding. Tool names are deterministic hashes of the business name, description and canonical input schema. Native tab/document/revision identifiers stay in host state. Distinct frames with identical capabilities are disambiguated. Stable declarations are retained across loading and navigation, so ordinary page changes do not rewrite the tool prefix. Current callable names are carried by a Cordis dynamic context contribution, appended to conversation history when availability changes, rather than rewriting stable rules. The retained catalog is pruned to current capabilities when its union would exceed 128 declarations (a larger live inventory is still exposed).
Execution bindings are staged during system-prompt assembly and committed only by
the real agent/pre-step event for the matching signal. A prompt preview or an in-turn
browser_context/browser_list_tools observation cannot retarget a pending call.
The native dispatch still validates the captured tab, document, frame, revision and
schema, rejects unavailable targets without dispatch, and never replays unknown
outcomes. Stable names are not permission to carry an old request into a new page.
A new model step may bind the same capability name to the new page. Navigation
invalidates execution bindings immediately while retaining cacheable declarations.
Disposal removes both bindings and registrations.
Pre-dispatch identity errors report execution: not_dispatched. Failures after
native dispatch conservatively report execution: unknown and require checking
the actual page/business state; the Host never automatically replays them.
Context returns full schemas on first discovery or a catalog change. Later reads
return compact tab metadata and fresh grouped targets (tool names with current
frame/document/revision identities). browser_list_tools rereads all schemas or
selected names on demand, including after conversation compaction. Navigation,
tab-open and tab-close receipts contain site-local tab metadata without schemas.
webmcp_read_source is available in both modes for an explicit source read;
context does not load source or working-project contents. Use webmcp_project
with operation state when working-project details are needed.
Chrome DevTools MCP
The official chrome-devtools-mcp 1.8.0 is bundled and available in both Use
and Builder. No separate Chrome process, installation or global debugging port
is required. Discover its tool names and input schemas with
mcp__chrome_devtools__list_tools, then invoke them through
mcp__chrome_devtools__call_tool using { name, arguments }. Start with the
official list_pages tool to obtain pageId. Discovery accepts optional names
to return only the requested schemas.
Use mcp__chrome_devtools__batch with { steps: [{ name, arguments }, ...] }
for up to eight predictable calls using already observed targets. For example,
fill a known page-name field, then press Enter with includeSnapshot: true.
The final action supplies updated accessibility state in the same model round
trip. A standalone input action can also use includeSnapshot; do not request
a duplicate snapshot. If another step needs a new UID or a decision, inspect
first. Explicit navigation must be the last step.
Batches keep one bound connection, check the original document before every
step, and stop on the first failure without retrying. The response includes
status, the number of completed steps, a zero-based stoppedAt on failure,
and ordered result content, including screenshot attachments. A stopped step
may have acted: inspect current state before continuing, never replay the batch.
completed describes execution only. Batch receipts explicitly return
verification.postcondition, verification.visual, and
verification.persistence as not_checked: callers must assess the evidence
or run a semantic validator before claiming the task succeeded. A screenshot
being returned does not automatically pass visual verification.
Receipts include monotonic timings: total batch time, initial connection lookup
or startup, and each attempted step's total and mcpMs. MCP time includes server
waiting and any observation done by that call; it does not isolate browser input,
UI stabilization, or validation. Total batch time includes document checks and
cleanup but excludes outer tool serialization and image attachment storage.
Model generation and scheduling between calls are not measured. Arguments and
page content are not copied into timing records.
Run pnpm benchmark:browser for a repeatable Electron tool-chain comparison.
See benchmark protocol for scope and output.
For ordinary native edits, the current snapshot can supply the target and prior value directly. Use WebMCP when it adds semantic context or performs the action; there is no mandatory WebMCP read/write handoff before DevTools input. Verify appearance with a screenshot, text with editor/preview state, and persistence with a reload only when needed.
The suite includes snapshots, JavaScript evaluation, interaction, console and
network details, screenshots, performance and memory snapshots.
WebMCP execution uses the registered webmcp__ tools; browser_context
and browser_list_tools inspect and refresh their inventory;
the upstream name-only WebMCP tools are excluded and rejected if called directly.
Both screenshot paths become normal Harness image attachments.
Browser owns native tab creation/closure through browser_open_tab and
browser_close_tab; browser_select_tab explicitly binds another same-site tab.
Each Agent uses an authenticated, loopback CDP bridge exposing only its bound website tab. It never exposes the Harness shell or a browser-wide debugging endpoint. Independent CDP sessions keep MCP events separate from Browser's own WebMCP registry. Retargeting, site changes, tab closure and Agent disposal release the connection; failed actions are never automatically replayed. MCP file outputs are rooted in the site's workspace, and upstream usage statistics/CrUX reporting are disabled. Capabilities that require Chrome-only services remain subject to the Electron/Chromium version.
The CDP bridge forwards an explicit set of page inspection/debugging methods. Profile-wide cookie/storage commands, alternate WebMCP invocation, profile selection and unknown methods are denied, including on flattened page sessions. Direct navigation stays within the bound origin; Puppeteer's utility worlds are created without universal cross-origin access. Native file uploads validate canonical paths against the site's workspace before forwarding to Chromium. This remains a privileged page debugger, including JavaScript evaluation.
When capabilities are missing, the Agent can switch itself to Builder, inspect the
live page, capture screenshots, explore the UI, inspect request metadata/errors,
and debug JavaScript. It writes a single TypeScript source, compiles and installs
it with webmcp_apply, verifies the new tools against the page, returns to use
mode, and continues the original task. The bundled deepdeck-webmcp-builder Skill
contains the complete authoring workflow and SDK contract.
Generated WebMCP runs in an isolated browser JavaScript world with DOM access and
without Node APIs. globalThis.__deepdeckWebMCP exposes asynchronous
registerTool, a disposal signal, and onDispose. Generated registrations are
namespaced and tracked by their real execution context; they never replace
site-owned registrations. They may compose existing native WebMCP tools.
GitHub community WebMCP
The WebMCP panel includes a Community section: discover projects for the current origin, preview a public GitHub repository, review its source and confirm installation. The default resolves the latest stable release; Advanced accepts an explicit full commit SHA for unreleased testing. The Host resolves tags, checks repository ID, ordinary Git tree paths, blob integrity and manifest SHA-256, then compiles locally. No repository install scripts or remote build commands run. Preview expires after five minutes and is consumed once; changes to local draft/activation require a new preview. Installation preserves editable source and rolls back native registration failures. GitHub provenance persists with each imported local revision.
Export GitHub draft saves the selected active revision into a separate site-workspace
directory. The deepdeck-webmcp-github skill is bundled in both Use and Builder;
the Agent can call webmcp_export_revision directly, use existing GitHub authentication,
publish or contribute a repair as requested. Export itself performs no GitHub write.
The initial draft is UNLICENSED and needs license, tool metadata and verification
review before publication. The repository skill link and runtime use the same text.
The public directory lives at /webmcp and /zh/webmcp. A Cloudflare Worker and
D1 index public repository submissions and periodically refresh verified metadata.
The official website proxies the catalog for clients. pnpm webmcp:sync refreshes
offline fallbacks from that service; listing projects no longer requires a registry
PR. GitHub issues/releases remain the source for collaboration and maintenance.
Directory data can be stale and is not an endorsement of community source.
Run node apps/desktop/scripts/verify-webmcp-market.mjs for the isolated real
Electron UI and native-registration check. The fixture simulates GitHub responses;
repository resolution and persistence are covered separately by Host tests.
Local lifecycle
- Enabled WebMCP loads automatically on matching documents and browser restart.
- Site bindings persist in Browser's own store. Reopening resumes the original Harness Session before binding its new tab, without adding custom Session log events or replaying earlier actions.
- Sources and immutable, digest-verified revisions persist under
~/DeepDeck/Browser/webmcp; site workspaces live under~/DeepDeck/Browser/sites.DEEPDECK_BROWSER_HOMEoverrides the roo