AI Agent Hub
Back to plugins
🧰

dsh-fetch-file

Web Tools Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install ZhijiangTang/dsh-fetch-file

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install ZhijiangTang/dsh-fetch-file in your DeepSeek Harness terminal to install this plugin; the source code is hosted at https://github.com/ZhijiangTang/dsh-fetch-file

About this plugin

The built-in web_fetch is great at extracting article text for the model, but the moment a response is not a readable page it discards the raw byte stream entirely. Images, archives, PDFs, audio, installers are exactly the binary assets a model task often needs saved to disk, yet web_fetch simply throws them away. dsh-fetch-file closes that gap.

It takes an http/https URL, follows redirects, and streams the raw bytes straight to a file inside the workspace, returning the absolute path, actual byte count, HTTP status code, and Content-Type. Pure ESM, zero dependencies, no build step. The per-download cap defaults to 200 MB, the fetch timeout is 120 seconds, and a failed write cleans up its temporary file so no half-written artifact is left behind. A path fence guarantees the destination always resolves within the workspace root, and a self-check runs at mount time performing a real download of example.com and verifying that an out-of-bounds path is rejected, with evidence printed to the log.

It is aimed at developers building agent workflows, automation pipelines, or any system where the model must retrieve and operate on binary files directly. Use it when you need to grab a file, and stick with web_fetch when you need to read an article.

Use Cases

  • Download remote images, PDFs, archives, or installers as local workspace files
  • Fetch remote binary resources in bulk within an automation pipeline
  • Have the agent operate on real files instead of reading text-only summaries

Best For

  • Developers building agent workflows
  • Engineers who automate remote file retrieval and processing
  • Developers extending their toolchain with DSH plugins