pptx-viewer
View and discuss PowerPoint (.pptx) decks with the user in the Presentations side panel. Use when the user wants to open, review or ask about a deck in the workspace together, refers to a slide or shape they selected or referenced in the Presentations viewer, or should check a deck you just produced.
- License 许可
- Apache-2.0
- 所属仓库
- zai-org/ZCode
- 最近更新
- 2026-11-13
- Stars
- ★ 8.7k
- Forks
- 2.7k
01 前言 Front Matter
- name
- pptx-viewer
- description
- View and discuss PowerPoint (.pptx) decks with the user in the Presentations side panel. Use when the user wants to open, review or ask about a deck in the workspace together, refers to a slide or shape they selected or referenced in the Presentations viewer, or should check a deck you just produced.
03 SKILL.md 正文
PowerPoint viewer
The Presentations panel renders a workspace deck for the user. You read the same file through tools and point the user at slides and shapes in it. The viewer is read-only: never claim to have edited a file through it. To create or change decks, or to extract their content for other work, use the pptx skill.
Anchors
Every location is an anchor <workspace-relative path>#<location>:
slide:Na slide,slide:N-Ma run of slidesslide:N/shape:IDone shape on a slide (ID is the shape's id in the file, as tools return it)
For example deck.pptx#slide:3 or deck.pptx#slide:3/shape:7. Omit #<location> for the whole deck. Slides start at 1. Use only anchors that a tool returned or that follow this grammar; tool output prefixes every block with its location.
Workflow
open_document(path, at?)opens the deck in the panel and returns its outline. Open it before discussing it so the user sees what you see.read_document(anchor, cursor?)returns the slides of a location with their shapes' text and speaker notes. Read the relevant slides before answering; follow thecursorhint for long decks instead of guessing.search_document(path, query)finds text and returns shape anchors.show_in_viewer(targets, note?)scrolls the panel to the targets and highlights them. Use it whenever your answer is about specific slides or shapes, e.g. when you point out inconsistent numbers. Keepnoteto one short sentence.get_view()tells you which slide the user is looking at and what they selected. Call it when the user says "this", "here", "this slide" or similar without an anchor.capture_view(anchor?)(a panel tool, available while the panel is open) returns an image of the rendered slide. Use it when layout, images, charts or visual design matter, which on slides is often. The deck must already be open in the panel.
After you produce or change a deck with the pptx skill, open it with open_document so the user can look at the result with you.
References from the user
When the user clicks a shape or selects text and chooses Add to chat, the next message carries context like - launch.pptx#slide:2/shape:4: "Owner: Dana". Treat those anchors as precise pointers: read them with read_document if you need more than the quoted text, and answer about exactly those places. Ask sends a question that already includes the anchor and the quoted text.
show_in_viewer marks every target and shows your note beside the first one; the user can step through the targets in order, so list them in the order you discuss them.
Notes
- Paths are relative to the workspace; files outside it cannot be opened. Only .pptx opens, not legacy .ppt.
- The panel renders slides close to, but not exactly like, PowerPoint; fonts missing on the machine fall back to similar ones. Use
capture_viewbefore you comment on fine layout, and say when a difference may come from the renderer. - Do not paste whole decks into the chat; quote briefly and point with
show_in_viewer. - The panel only works in ZCode Desktop local workspaces. Elsewhere, still open the document with
open_document: the read and search tools work without the visual panel. Tell the user the visual viewer is unavailable.
04 同仓库更多 Skills
plugin-mcp-ping
E2E workspace Plugin skill marker
e2e-ext-compat-plain
PLM-EXT-STORE fixture skill for e2e-ext-compat-plain.
e2e-ext-compat-ok
PLM-EXT-STORE fixture skill for e2e-ext-compat-ok.
e2e-ext-compat-installed
PLM-EXT-STORE fixture skill for e2e-ext-compat-installed.
e2e-ext-compat-future
PLM-EXT-STORE fixture skill for e2e-ext-compat-future.
e2e-store-skill-b
E2E store fixture skill b