hezi2020/dsh-plugin-wiki--plugins-dsh-custom-tool ↗★ 0
dsh-custom-tool
DSH custom tools: manage user-defined JavaScript tools in the settings UI with a Monaco editor; the model creates its own tools through custom_tool_create
AI 分析
核心用途是让用户或AI模型在DSH中动态编写和管理自定义JS工具。适合有编程基础、需要扩展模型工具链的开发者或高级用户。可在设置UI中直接编辑,支持配置超时、内存限制等参数。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hezi2020/dsh-plugin-wiki#0f911a1b7aef331b19607a60c884be50e910c0ab&path:plugins/dsh-custom-toolドキュメント
README 全文を読む ↗Configuration
All tunables are cordis.yml config fields of the dsh-custom-tool entry:
| Field | Default | Meaning |
|---|---|---|
timeoutMs | 30000 | wall-clock budget per call |
memoryLimitMb | 128 | worker old-generation heap cap per call |
maxResultChars | 16000 | rendered result text budget |
maxCodeBytes | 65536 | UTF-8 byte budget per tool body |
maxTools | 100 | stored-tool cap |
allowNetwork | true | whether tool bodies may call fetch |