dsh plugins中文
← Back to popular plugin directory

DSH Plugin Sleep

HuanLinOTO/dsh-plugin-sleep · enterprise

Expose the sleep tool to the model, pause execution for specified milliseconds and then return, supporting cancellation/clamp.

★ 6GitHub stars
0Forks
2026-08-15Last updated
TypeScriptLanguage
NOASSERTIONLicense

Project overview

📌 本插件已收录于 dshfind 插件超市,点击上方徽章直达主页。 dsh-sleep

在 DSH GUI 设置页或 cordis.patch.yml 中配置: 字段 · 类型 · 默认值 · 说明 字段: maxDurationMs · 类型: number · 默认值: 60000 · 说明: 单次 sleep 上限毫秒数。超过会被 clamp 到此值,并在返回中标 clamped: true。 字段: defaultDurationMs · 类型: number · 默认值: 0 · 说明: 当模型省略 durationms 时的回退值。 工具 sleep

暂停 N 毫秒后返回。 参数: 参数 · 类型 · 必填 · 说明 参数: durationms · 类型: integer · 必填: 是 · 说明: 暂停毫秒数,必须 ≥ 0。超过 maxDurationMs 会被 clamp。 参数: reason · 类型: string · 必填: 否 · 说明: 人类可读的暂停理由,会原样回显。 返回(规范 JSON):

Install command

dsh plugin --profile web add github:HuanLinOTO/dsh-plugin-sleep
View GitHub repository ↗Back to popular plugin directory