dsh-web-summary
其他 活跃维护

dsh-web-summary

lavenleo/dsh-web-summary

轻量级网页信息提取插件,可直接抓取公开网页内容,自动提取标题与纯文本摘要后返回给智能体代理,接入无需复杂配置,输出的网页摘要信息准确简洁。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
4 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:lavenleo/dsh-web-summary
git clone https://github.com/lavenleo/dsh-web-summary.git
git clone git@github.com:lavenleo/dsh-web-summary.git
README.md main

dsh-web-summary

A DeepSeek Harness Host tool plugin that fetches a public web page over HTTPS and returns its <title> and a plain-text summary of the visible content to the agent.

Features

  • Registers one model-callable tool: fetch_page_summary
  • Accepts an https:// URL and an optional maxChars cap (default 4000)
  • Returns { url, title, summary, truncated }; scripts, styles, and markup are stripped
  • Plain ESM JavaScript — no build step, works from both Git and npm installs

Install

dsh plugin --profile <profile> add github:<owner>/dsh-web-summary

or from npm:

dsh plugin --profile <profile> add dsh-web-summary

Restart the profile afterwards. The tool then appears as fetch_page_summary for the agent.

Usage example

Ask the agent: "Summarize https://example.com". The agent will call fetch_page_summary and receive the title plus up to maxChars characters of visible text.

Development

# verify the file parses as ESM and exports a Cordis plugin
node --check lib/index.js

License

MIT