sandbox-pptx
Extract text from a PowerPoint file, whole or per slide, in a Code node or CodeAct action, with office-text-extractor running on the host
- License 许可
- AGPL-3.0
- 最近更新
- 2026-08-18
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- sandbox-pptx
- description
- Extract text from a PowerPoint file, whole or per slide, in a Code node or CodeAct action, with office-text-extractor running on the host
02 资源文件 1
- 参考文档package.json877 B
03 SKILL.md 正文
PowerPoint text in the sandbox
Specifier: @nodetool-ai/sandbox-pptx. Declare it in the node's packages
property and import it at the top of the body.
office-text-extractor reads a .pptx buffer through Node's own zip/XML stack;
it is not a guest-module candidate. This pack is a host module: the import
resolves to a generated facade over NodeTool's own implementation.
extractText — whole deck to plain text
import { extractText } from "@nodetool-ai/sandbox-pptx";
const bytes = await workspace.readBytes("deck.pptx");
const text = await extractText(bytes);
All slides concatenated, in order.
extractSlides — one item per slide
import { extractSlides } from "@nodetool-ai/sandbox-pptx";
const slides = await extractSlides(bytes);
// [{ index: 0, slideNumber: 1, text: "Welcome to slide one" }, ...]
Get the bytes from workspace.readBytes, or from a fetched body with
await response.bytes().
Gotchas
- Both exports are async.
- 10 MB per deck. Larger input is refused by name.
- Text only. Neither export reads speaker notes, images, or slide layout — just the text runs on each slide.
04 同仓库更多 Skills
sandbox-zip
Read and write zip archives in a Code node or CodeAct action, with fflate running on the host under a 50 MB inflation cap
sandbox-yaml
Read and write YAML inside a Code node or CodeAct action, with js-yaml running in the guest
sandbox-xml
Parse XML feeds and sitemaps in a Code node or CodeAct action, with fast-xml-parser running on the host
sandbox-xlsx
Read and write Excel workbooks in a Code node or CodeAct action, with exceljs running on the host
sandbox-twilio
Send SMS and WhatsApp messages and look up numbers from a Code node or CodeAct action, with NodeTool's Twilio request builder running on the host
sandbox-tfjs
Classify and embed images, detect objects, and answer from a passage in a Code node or CodeAct action, with TensorFlow.js running on the host