browser-search icon indicating copy to clipboard operation
browser-search copied to clipboard

Support Camofox 1.15+ features: HTTP status, PDF download, select/press/submit

Open Johell1NS opened this issue 1 month ago • 1 comments

Summary

Camofox 1.15–1.18 added a few API features that the skill does not use yet. Using them makes browsing more informative and covers cases that currently need workarounds.

Proposed changes

  1. HTTP status in results. POST /tabs and /navigate now return httpStatus and navigationOk. camofox.mjs (tab open, evaluate, snapshot, readability) and smart-extract would report them, and smart-extract would add a warning when the status is 400 or higher. The extraction flow stays unchanged: some sites answer 403 and still serve the real content once the challenge is passed, so the status must not trigger an escalation by itself. Today a 404 page is returned as ok: true with no signal.
  2. pdf <url> [output-path] subcommand. Uses POST /tabs/:id/fetch-current-resource plus GET /tabs/:id/downloads?includeData=true to save the full PDF the browser received (works behind bot checks). Currently smart-extract on a 15-page arXiv paper returns about 4,200 characters with merged words, because the in-browser PDF viewer only renders the visible pages.
  3. Form helpers. New tab select <tabId> <ref> "<option>" (native <select>, endpoint added in 1.15), tab press <tabId> <key>, and --submit / --clear flags for tab type.

All changes are backward compatible: new fields are omitted when the server does not return them.

Notes

  • No new dependencies.
  • advanced-browsing-reference.md and the SKILL.md output description updated accordingly.

Johell1NS avatar Oct 21 '26 09:10 Johell1NS

Released in v3.2.0.

Johell1NS avatar Oct 21 '26 12:10 Johell1NS