DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-http

d

dsh-http

Manifest valid
hasBundlePatch

dsh-http

DSH 结构化 HTTP 请求工具插件。注册一个 http_request 工具,基于 Node 内置 fetch,把每次请求的结果规范化为一个结构化 JSON 对象,供模型与 Code Mode 程序化调用。零依赖、纯 ESM、无构建。

简介

  • 工具名:http_request
  • 能力:任意 http/https 请求(GET/POST/PUT/PATCH/DELETE/HEAD)、自定义请求头、原始 body、JSON 自动序列化、Bearer/Basic 认证便捷参数、超时与响应体截断。
  • 行为:永不抛异常。网络错误、超时、参数错误都折叠为 { ok: false, error: { stage, message } };成功返回 { ok: true, status, statusText, durationMs, sizeBytes, ... }。

安装

dsh plugin --profile <name> add file:./plugins/dsh-http
# 或发布后:
dsh plugin --profile <name> add dsh-http

参数

参数类型必填默认说明
urlstring✅—目标 URL,仅允许 http/https
methodenum—GETGET/POST/PUT/PATCH/DELETE/HEAD
headersobject——额外请求头,key → string
bodystring——原始请求体;与 json 互斥
jsonJSON——任意 JSON 值,自动 JSON.stringify 并置 content-type: application/json;与 body 互斥
timeoutMsnumber—10000请求超时(毫秒)
maxBodyCharsnumber—4000响应体返回上限(字符数)
authobject——认证便捷参数,见下

body 与 json 同时提供会返回 { ok: false, error: { stage: 'request', message: ... } }。

输出字段

成功(ok: true):

字段类型说明
statusnumberHTTP 状态码
statusTextstring状态文本
durationMsnumber往返耗时(毫秒)
sizeBytesnumber响应体字节数
contentTypestring响应 content-type,存在时给出
headersobject仅存在的响应头:content-type/content-length/location/server
redirectTostring3xx 时标注 location 跳转目标
jsonobject响应体 JSON 解析成功时给出;受 maxBodyChars 截断则为 null 且 truncated: true
textstring非 JSON 响应体的(截断后)文本
truncatedboolean响应体是否被截断

失败(ok: false):{ ok: false, error: { stage: 'request', message } }。

认证用法

auth 参数在内存中生成 Authorization 头(不落盘、不进日志参数):

// Bearer
{ "auth": { "type": "bearer", "token": "<token>" } }
// Basic
{ "auth": { "type": "basic", "username": "user", "password": "pass" } }

token / username / password 缺失时返回 { ok: false, error: { stage: 'request', message: ... } }。

安全与内网访问风险提示

⚠️ 本工具是本地个人工具,不内置 SSRF 拦截。唯一的安全校验是 URL scheme 必须是 http/https。

这意味着它可以访问 http://localhost、http://127.0.0.1、http://10.x、http://192.168.x、http://172.16–31.x、http://169.254.x 等内网/回环地址。如果模型(或共享给模型的 Code Mode 程序)被诱导发起请求,可能扫描内网、访问本机服务或向云元数据端点(如 169.254.169.254)发起请求。

不要在不可信的 prompt 或不可信的多租户环境中使用本插件;如确有内网隔离需求,请在插件上游叠加 tools/pre-execute 策略进行 URL 门禁。

License

MIT

Comments

Loading…

From the same category

dsh-web

by zhu1090093659

DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop

Tools & CapabilitiesTerminal & ClientsDevelopment & InfrastructureModels & ProvidersUI & ExperienceManifest valid

★ 8.2k

↓ 134/wk

Apache-2.0

TypeScript

Oct 1, 2026

dsh plugin --profile web add dsh-web

A collection of independent Web UI plugins and skins, including task boards, Git graphs, mobile access, and live token stats.

UI & ExperienceVision & MultimodalTools & CapabilitiesJust for FunManifest valid

★ 7.4k

↓ 172/wk

Apache-2.0

TypeScript

dsh plugin --profile web add dsh-web

by dsh-market

The plugin market inside DeepSeek Harness — browse, search, one-click install · DSH 可视化插件市场

Tools & CapabilitiesManifest valid

★ 5.2k

↓ 143.1k/wk

MIT

TypeScript

Sep 30, 2026

dsh plugin --profile web add dshmarket

by crafter-station

A public gallery of animated pets for Codex, Claude Code, DeepSeek Harness, Hermes, OpenCode, Gemini CLI, and more.

Tools & CapabilitiesManifest valid

★ 4.2k

MIT

TypeScript

Sep 28, 2026

Index only — not installable

by superdesigndev

OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn

Tools & CapabilitiesModels & ProvidersManifest valid

★ 4k

NOASSERTION

Python

Oct 1, 2026

dsh plugin --profile web add treg-dsh

by xiaobright

Two-phase DeepSeek Harness preset: Minimal-aligned bootstrap, then full Standard tools (Project2 98/99)

Tools & Capabilities

★ 3.8k

JavaScript

Sep 10, 2026

Index only — not installable