browser-search
browser-search copied to clipboard
Support Camofox 1.15+ features: HTTP status, PDF download, select/press/submit
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
- HTTP status in results.
POST /tabsand/navigatenow returnhttpStatusandnavigationOk.camofox.mjs(tab open,evaluate,snapshot,readability) andsmart-extractwould report them, andsmart-extractwould add awarningwhen 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 asok: truewith no signal. pdf <url> [output-path]subcommand. UsesPOST /tabs/:id/fetch-current-resourceplusGET /tabs/:id/downloads?includeData=trueto save the full PDF the browser received (works behind bot checks). Currentlysmart-extracton a 15-page arXiv paper returns about 4,200 characters with merged words, because the in-browser PDF viewer only renders the visible pages.- Form helpers. New
tab select <tabId> <ref> "<option>"(native<select>, endpoint added in 1.15),tab press <tabId> <key>, and--submit/--clearflags fortab type.
All changes are backward compatible: new fields are omitted when the server does not return them.
Notes
- No new dependencies.
advanced-browsing-reference.mdand theSKILL.mdoutput description updated accordingly.
Released in v3.2.0.