dsh-clipboard
Manifest valid★ 1DSH plugin: write text to the system clipboard (pbcopy/clip/xclip/xsel, cross-platform)
dsh-clipboard
把文本写入系统剪贴板的 DSH 插件。零依赖、纯 ESM JavaScript、无需构建。
简介
注册一个工具 clipboard_write,接收任意文本并写入系统剪贴板,方便 agent 把生成的结果直接交给用户粘贴使用(例如复制命令、代码片段、URL、密钥等)。
执行结果始终返回规范 JSON 值,任何失败都不抛异常:
{ "ok": true, "bytes": 42, "tool": "pbcopy" }
{ "ok": false, "bytes": 42, "tool": null, "error": "no clipboard tool available (install xclip or xsel): ..." }
安装
dsh plugin --profile <profile-name> add dsh-clipboard
# 本地开发:
dsh plugin --profile <profile-name> add file:./plugins/dsh-clipboard
平台依赖
| 平台 | 实现 | 是否需要安装 |
|---|---|---|
| macOS | pbcopy(/usr/bin/pbcopy) | 免装,系统自带 |
| Windows | clip | 免装,系统自带 |
| Linux | xclip(优先)或 xsel | 需要安装其一:sudo apt install xclip 或 sudo apt install xsel;两者都没装时工具返回 ok: false 并提示安装 |
注意:Linux 下需要可用的 X11/Wayland 会话(
DISPLAY/WAYLAND_DISPLAY)。无图形会话(如纯 SSH、CI 容器)会写入失败。
使用场景
- 让 agent 把生成的一行命令、SQL、JSON、代码片段直接放进剪贴板,用户粘贴即用。
- 复制临时 token / URL / 文件路径,省去手动选中。
- 作为多步工作流里的“交接输出”步骤。
自检
插件挂载时自动写入一次 clipboard-probe-<时间戳>;macOS 上会用 pbpaste 读回比对,Linux/Windows 只报告写入结果。日志前缀 [dsh-clipboard]。
License
MIT
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
Comments
Loading…
From the same category
DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.
★ 41.7k
↓ 156/wk
MIT
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-reactive-resumeby Tencent
Let AI agents use your real, logged-in browser without interrupting your work. CLI + extension for browser automation across any shell-capable AI agent.
★ 8.6k
↓ 6.1k/wk
MIT
TypeScript
Oct 10, 2026
dsh plugin --profile terminal add @wxg-prc-cpg/browser-skill-dsh-pluginby yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
★ 7k
MIT
JavaScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby Q00
Agent OS: the agent gets smarter on its own. We just hold the line: Interview-gated, staged evaluation, budgeted evolution loop. MCP server, 14 runtimes: Claude Code, Codex CLI, Gemini CLI, OpenCode,
★ 6.2k
MIT
Python
Oct 7, 2026
by dsh-market
The plugin market inside DeepSeek Harness — browse, search, one-click install · DSH 可视化插件市场
★ 6.1k
↓ 112.4k/wk
MIT
TypeScript
Oct 10, 2026
dsh plugin --profile web add dshmarketby superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
★ 5k
NOASSERTION
Python
Oct 11, 2026
dsh plugin --profile web add treg-dsh