NeoHotaru/dsh-read-animation ↗★ 0
dsh-read-animation
让DSH代理能够读取并分析动图 适合需要让AI模型分析GIF或WebP动图多帧细节的视觉处理任务。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:NeoHotaru/dsh-read-animation說明文件
閱讀完整 README ↗Usage
The model reaches for it on its own for a .gif, because the tool description
says to. You can also ask directly:
what happens in this GIF? —
animations/loading-spinner.gif
Arguments:
| argument | meaning |
|---|---|
file_path | the animation to read (required) |
frames | explicit 0-based indices, in the order given — up to 16 |
at | millisecond instants to sample instead of an even spread |
max_frames | how many frames to sample (default 8, maximum 16) |
max_edge | long-edge size of each returned frame in px (default 640) |
A useful loop, when the first read is not enough detail:
read_animation { file_path: "dance.gif" } → 8 frames across the timeline
read_animation { file_path: "dance.gif",
frames: [11, 12, 13], max_edge: 1024 } → those three, full size
Configuration
Optional, in the plugin row of your profile's cordis.patch.yml:
- id: read-animation
name: 'dsh-read-animation'
config:
maxFrames: 8 # default frames per call, 1..16
maxEdge: 640 # default long-edge cap, 64..2048
background: white # "white" flattens transparency, "keep" preserves it
maxInputBytes: 67108864 # refuse animations larger than this
expandPastedAnimations: true # a pasted animation keeps playing in the UI and reaches the model as a frame sheet