DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

Pahom-ka /

Pahom-ka/web-fetch-plus

仅 Topic 仓库

这个插件还没有填写简介。

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@6febc4af

web-fetch-plus

Model-facing web_fetch tool with render modes over the DeepSeek Harness web capability seam (ctx.web).

Extracted from dsh-tool-web so the shipped tool package stays upstream-clean. The mode argument selects the output form:

mode behavior
text_compact (default) maximally compact plain text — page chrome (header except title, footer, nav, aside, scripts, styles, forms, comments) stripped, main content only
text full plain text: <br> → newline, block elements → blank-line paragraph breaks, no markup
raw extended form: the whole page converted to markdown with links and structure (GFM tables, strikethrough)

Safety properties:

  • External content is labeled EXTERNAL_WEB_CONTENT_NOTICE so provider text stays visibly outside agent instructions.
  • A lexical nesting-depth ceiling (MAX_CONVERSION_DEPTH = 512) plus a source prefix cap keep synchronous HTML conversion bounded; pathological input is omitted rather than passed through raw.
  • Output is capped as a whole (fetchMaxOutputChars), with an explicit truncation footer; the fetch card's truncated flag is derived from the same render, so UI never disagrees with the text the model saw.

Usage

Compose this package instead of dsh-tool-web's fetch half: set dsh-tool-web's fetch: false and mount this row beside it.

- id: tool-web
  name: '@deepseek-ai/dsh-tool-web'
  config:
    fetch: false
    searchTimeoutMs: 60000

- id: tool-web-fetch-plus
  name: '@deepseek-ai/dsh-tool-web-fetch-plus'
  config:
    fetchTimeoutMs: 30000        # cooperative tool-call budget (ms)
    fetchMaxOutputChars: 200000  # cap on complete rendered output

Repository layout

  • src/ — plugin source (Cordis plugin tool-web-fetch-plus)
  • tests/ — vitest unit tests
  • patches/web-fetch-http-accept-header.patch — companion change to dsh-web-fetch-http: a browser-compatible Accept header (default text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8) that avoids bot-mitigation 406s from front-ends like hh.ru.

Credentials: this package reads no secrets. There is no key, token, or endpoint credential anywhere in the code or history.

License

MIT

—/ 5

暂无评分

需要先验证清单

Commit 6febc4af04e2

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于