shy19805/dsh-tool-args-unwrap ↗★ 0
@dsh-external/dsh-tool-args-unwrap
Fixes malformed tool-call arguments (nested {"arguments":{…}} wrappers, wrapper-key aliases, param-key aliases) at the llm/stream seam — repairs execution, persistence and history replay in one place. 修复模型产出的畸形工具参数。
AI 分析
核心用途是解决大模型调用工具时输出格式不规范导致的执行失败问题。适合在使用 DSH 过程中频繁遇到工具参数畸形报错、影响 Agent 自动化任务执行的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:shy19805/dsh-tool-args-unwrapドキュメント
README 全文を読む ↗安装与使用
方式一:开发装配(推荐,本插件即以此验证)
把插件目录 link 进 profile,加进 bundles 数组,重启即持久生效:
//
/package.json
{
"dependencies": { "@dsh-external/dsh-tool-args-unwrap": "link:/abs/path/to/dsh-tool-args-unwrap" },
"dsh": { "profile": { "bundles": ["@dsh-external/dsh-tool-args-unwrap"] } }
}