Repository navigation
feat: browser.image, self-checking collections and the 45-tool MCP catalogue (v1.6.0) - #61
Merged
Merged
Conversation
…e by ref The ref may point at an <img> or at a container (a dialog, a button that wraps a picture), then the largest loaded <img> inside it is read. The page fetches it with its own session; when CORS stops the page, the background worker fetches the same address under the extension's host permission. Nothing on the page is clicked. Lets an agent take a generated picture without a download dialog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Shared 45-tool MCP catalogue for stdio and HTTP: images, select options, JavaScript dialogs, task pause/resume/wait, tabs, network/console, storage and local files. - Complete OpenClaw tool configuration with the same 45 tools. - Prompt refinement preview in the side panel. - Fix content script loading on pages that block dynamic module imports. - Upgrade Vite to 8.3.4 for security advisories. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
- icons/icon128.png: duplicate of core/public/icons/icon128.png, which the manifest uses. - docs/assets/futter.png, docs/assets/webim.png: no longer referenced. - docs/1.0.0-release-criteria.md: criteria for the 1.0.0 release, long shipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The P0 and P1/P2 acceptance reports and the gap list were working notes for the MCP catalogue. What they record now lives in docs/mcp-tools.md and CHANGELOG.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ection - Ranges: "1–50 of N" now keeps N. A request for 200 records stops at N when the site has fewer, and progress says so. N alone never becomes a goal. - Infinite scroll: a list scroll during collection waits for the DOM to go quiet before the next capture. A capture that adds nothing is rechecked once after 2.5 s; a second empty capture marks the collection stalled and progress reports where loading stopped. - Long text: chunks end on a paragraph or line break instead of at a fixed 6000 characters, and progress names the last section heading reached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ents browser_extract takes mode "rows" or "chunk" (with target, selector, collectionId and since). The extension runs the same traversal the side-panel agent queues: capture, Next or list scroll, a single recheck when a move adds nothing, and the cap from the pager's claimed total. Each call works for up to 12 s, saves progress in session storage under collectionId (last 20 kept), and returns complete, stopReason, progress and only the rows or text after `since`. Each step lands in the external-agent trace like any bridge action. A capture that adds nothing now counts as a stall only right after a scroll, page change or wait. A plain re-read, such as a resumed call, moves on to the next page instead of reporting a false stall. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…able
A "first 50 articles" run on arXiv stopped at 25: the model passed the
page size as the target, the target could not be raised, and the full
result cards it received per row were lost on history compaction, so the
model reported that the saved rows were unavailable.
- The count named in the goal ("50 статей", "200 вакансий", "50 articles")
is the floor for the target, and a later larger target replaces an
earlier one. requestedCount() also learns articles, papers, jobs,
titles, posts, reviews and their Russian forms.
- The model now gets a compact view of each rows capture: the new rows,
one 200-character line each. The full rows stay in the collection.
- The prompt says the target is the requested total, not the page size,
and that saved rows reach the user in full.
- Collected data opens by default when it holds rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A "first 100 articles" run on arXiv collected all 100 titles, then had
its answer blocked twice as a hostile-text leak: two real paper titles
("PIPETTE: Prompt Injection Purple-Teaming...", "AutoPI: ... Prompt
Injection in LLM Agents") tripped the names-the-attack pattern. The model
then gave up on the list and pointed at Collected data instead.
For the topic-only leak classes, answer lines that repeat a saved record,
or a whole line of one, are now set aside before the check. The imperative
and attribution classes still run on the full answer, so quoting "ignore
previous instructions" stays blocked even when it came from a record.
The compact rows view also stops counting rows beyond the target as
duplicates: it reports alreadySaved and beyondTarget separately.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main already carries the MCP catalogue part of this branch (#51-#53) as a subset of it. Conflicts are resolved with the branch's versions, which keep the collection, cursor, prompt refinement, conversation and side panel work that main does not have, plus two changes that exist only on main: - bridge-media.ts: the codeLiteral escaping from #54 (CodeQL alert). - core/package.json and package-lock.json: the Dependabot batch from #55. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodeQL js/double-escaping: chained replace() calls turned "&lt;" into "<" and then into "<". unescapeHtml() now undoes escapeHtml in a single pass, so an escaped entity in a URL stays an entity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Adds
browser.image, which returns an image by ref, and replaces the bridge's hand-written tool list with one shared 45-tool MCP catalogue. stdio and HTTP both serve it, and the OpenClaw config mirrors it. Bumpsweboperator-mcpto 1.6.0.browser.image(c7831d8): reads an<img>, or the largest loaded image inside a container, through the page's own session. If CORS blocks that, the background worker fetches it instead. Nothing on the page is clicked.weboperator-bridge/tools.js,core/src/lib/bridge-schema.ts): covers images, select options, JavaScript dialogs, task pause/resume/wait, tabs, network/console, storage and local files (weboperator-bridge/local-files.js).bridge-browser,bridge-confirmation,bridge-dialog,bridge-io,bridge-mediaandbridge-observation, pluscdp-session,cursorandside-panel.prompt-refinement.ts,PromptRefinementPreview.tsx), plus conversation and collection helpers.browser_extractwithmode:"rows"|"chunk"runs the same traversal inside the extension (12 s per call, resumable bycollectionId, returnscompleteandstopReason). Clicks on Next go through the external-agent trace likebrowser_click.docs/mcp-tools.mdanddocs/prompt-refinement.md.Why
Agents could not take a generated picture without going through a download dialog. The bridge also exposed only part of what the extension can do, and the tool lists for stdio, HTTP and OpenClaw had drifted apart.
How it was verified
./scripts/check.shpasses locally (lint, 412 unit tests, knip, bridge and MCP smoke tests, build)*.test.tsfor bridge modules, actions, collection, conversation, prompt refinement, andscripts/mcp-tools.test.mjs,scripts/bridge-files.test.mjs)scripts/bridge-p0-live.mjs,bridge-p1-p2-live.mjsandbridge-tools-live.mjswere added, but they were not run for this PRChecklist
CHANGELOG.mdupdated, as a[1.6.0]release section rather than underUnreleasedSecurity-sensitive areas
weboperator-bridgeparsing, binding, or authentication: new tools and local-file access (local-files.js)🤖 Generated with Claude Code