dsh-paperclip
提供回形针上传按钮与多格式文档读取工具的 DSH 插件
AI 分析
核心用途是在输入框添加文件上传按钮,并为智能体提供读取 PDF、Docx、Xlsx、JSON 等多种格式文档的工具。适合需要让智能体直接阅读和分析本地多格式文件的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:runfali/dsh-paperclip說明文件
閱讀完整 README ↗Configuration
Edit in Settings → Plugin Config → paperclip or override in ~/.dsh/profiles/web/cordis.patch.yml (full replacement):
| Field | Default | Description |
|---|---|---|
enabled | true | Show button and enable uploads |
maxBytes | 67108864 | Per-upload byte cap |
uploadDir | "" | Persist directory; empty → ~/.dsh/uploads/paperclip (content-addressed, deduped) |
allowedExtensions | [] | Whitelist (empty = allow all) |
readLimit | 2000 | read_document line window |
maxFileBytes | 67108864 | read_document per-file byte cap |
sheetRowLimit | 200 | xlsx rows kept per sheet |
Example:
- id: paperclip
config:
enabled: true
maxBytes: 67108864
uploadDir: ""
allowedExtensions: []
readLimit: 2000
maxFileBytes: 67108864
sheetRowLimit: 200
Usage
Upload: Click 📎 to pick files. If needed, click ▴ to expand the list above the input; × removes a file. Type a message and Send — the list clears and paths are sent with the message.
Read: The model calls read_document({ file_path, format: "auto", offset: 1, limit: 2000 }).