@decodo/dsh-web-fetch
DeepSeek Harness (dsh) plugin: Decodo Web Scraping API as the provider behind the built-in web_fetch tool, via @decodo/sdk-ts. 适合需要让AI抓取和分析复杂网页内容的用户,需自备Decodo账号及Token。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Decodo/dsh-web-fetchドキュメント
README 全文を読む ↗Configuration
Override in your profile's cordis.patch.yml. A patch replaces the row's whole config, so restate every field you want to keep.
- id: web-fetch-decodo
config:
tokenEnv: SCRAPER_API_TOKEN # env var holding the Web Scraping API Basic Auth token
output: markdown # markdown (default) or html
maxFetchesPerSession: 200 # fetch limit per dsh process; 0 disables
maxContentChars: 200000 # body cap; longer bodies are cut and flagged truncated
requestTimeoutMs: 60000 # request timeout, keep at or below the tool's fetchTimeoutMs
| Field | Default | Meaning |
|---|---|---|
tokenEnv | SCRAPER_API_TOKEN | Env var holding the Web Scraping API Basic Auth token; sent as Basic Auth |
output | markdown | markdown for Decodo's Markdown, html for the raw page |
maxFetchesPerSession | 200 | Requests allowed per dsh process; 0 disables the cap |
maxContentChars | 200000 | Body cap; longer bodies are cut and flagged truncated |
requestTimeoutMs | 60000 | Request timeout |
With output: markdown, the plugin requests Markdown from Decodo. When conversion succeeds, the plugin passes the result to the model unchanged. If the page is too large or empty, or if conversion fails, Decodo returns raw HTML with a note. DeepSeek Harness then converts the HTML. With output: html, Decodo always returns raw HTML for DeepSeek Harness to convert.