show-in-viewer
Load files into the ComfyUI Image Viewer when the user asks to see them there, and read what it shows (frame, range, marks) - "show me clip 3 in the viewer"…
от szprivate★ 53 звезды на GitHub
Установить show-in-viewer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Showing files in the viewer
show_in_viewer(paths=[...]) loads files into the ComfyUI Image Viewer. The viewer has one Viewer tab
for pictures and films, sorted into groups in its History strip (documents - a cut, Paint, Motion,
3D - have tabs of their own). By default the files go into the agentY group; the call brings the
viewer up (even if it is closed or docked) and selects the first item. Use it only when the user asks to look at something in the viewer; generated pictures
reach the viewer by themselves.
paths: absolute paths - images, videos, a folder, an image sequence (frame_%04d.png,frame_####.png,frame_*.png) or an.otio(it stands for the film beside it). Files must lie in ComfyUI's input/output/temp folders or a folder the user allowed in the viewer; the answer lists what wasrefused.group: a new name puts them in a group of their own - use it for "side by side" or for a comparison ("clip 3 vs clip 4").tab_namedoes the same whengroupis empty (older calls). Leave both empty for the agentY group.label: a caption in the History strip, when it helps tell them apart.focus: default true. Pass false only to load quietly.play: start playing the first video.panel="edit": open the viewer's Edit panel on the cut, so the user sees the edit shot by shot. The film needs an.otiobeside it (anagentY editrender writes one). "Open the edit" means this: pass the edit's film (or its.otio) withpanel="edit".panel="paint": open the pictures in the viewer's Paint tab (layers, brush, masks). An.oraor.psdalways opens there. "Open it in Paint", "let me paint on it" mean this.
An edit stage's render already opens itself this way when it finishes (Settings, media_nodes.viewer_open_edit),
so do not call the tool again right after a render unless the user asks.
If the answer has an error or refused paths, say so plainly; do not retry with other paths.
Changing a picture in Paint
Paint is the viewer's small picture editor: layers, a brush, selections, masks, adjustment layers,
text. Its file is an .ora (layers kept); a .psd and plain pictures open too. edit_image reads
and changes it - never write the .ora yourself (the open tab would not see it and its next save
would drop it).
edit_image()reads the picture open in Paint (ordoc=any.ora/.psd/ picture): its size, layers numbered from 1 at the TOP (as the Layers panel shows them), the selection's box. A layer is named by that number, its name, or"active".- Changes are a list of ops, all done or none, saved by the viewer and shown in the open tab at
once (one
Ctrl+Zthere undoes all of them). A plain picture or a.psdis never written over: the first change makes a new.oraversion, whose path comes back asdoc. - A refusal because the picture has unsaved changes means: ask the user to save in Paint
(
Ctrl+S) - do not passdoc=to get round it, their unsaved strokes would be lost.
Generate in Paint. The user's Generate buttons (generative fill, remove object, remove
background, select subject, extend, upscale) arrive as a [Paint] ... message with the document,
a PNG of the picture as it looks and a PNG of the selection (white = change). Run the fitting
workflow (inpaint / outpaint / matte / upscale) on those files, then put the result back with the
exact edit_image call the message gives - a new layer masked to the selection
({"op": "add_layer", "file": <result>, "mask": "selection"}), a layer mask
({"op": "mask", "from": "file", "file": <matte>}) or a selection ({"op": "select", "mode": "file", "file": <matte>}). Do not flatten or change the user's other layers.
Generate asked in chat. "Fill the selection with a cat", "remove the person I selected", "extend
it to the left" typed in chat, with no [Paint] message: edit_image(snapshot=True) hands over the
same files the Generate buttons do - snapshot.picture (the picture as it looks, unsaved strokes too)
and snapshot.selection (white = selected; null when nothing is selected - then ask them to select
the area, or build one with select) plus its box. Run the workflow on those, then put the result
back as above.
"Use that layer as the mask" / "mask the photo with the shape layer": {"op": "mask", "layer": <target>, "from": "layer", "source": <pixel layer>} - its brightness becomes the mask (as dropping a layer on
another's row in Layers does); the source layer goes unless "keep": true.
Other asks: "put the logo top right" - add_layer with file, x, y, w; "make it warmer" -
add_adjustment (grade, hue_saturation, levels, curves, exposure...); "add a title" -
add_text; "blur the background" - select + filter {"type": "blur"}.
Changing the cut in the Edit panel
"Cut the voice-over into the edit", "put the music under shots 3 to 5", "trim the last shot":
edit_cut reads and changes the cut open in the Ed
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
show_in_viewer - 02
get_viewer_state - 03
get_viewer_annotations - 04
edit_cut - 05
edit_image
FAQ
Что делает скилл show-in-viewer?
Load files into the ComfyUI Image Viewer when the user asks to see them there, and read what it shows (frame, range, marks) - "show me clip 3 in the viewer", "open these frames side by side", "open the edit", "put the two renders side by side". Also opens an edit's cut in the viewer's Edit panel, and a picture in Paint (layers) - and changes either.
Как установить скилл show-in-viewer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл show-in-viewer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…