sandbox-pdf
БесплатноБез исполняемых скриптовНе проверенExtract the embedded text of a PDF, whole or per page, in a Code node or CodeAct action, with pdf-parse running on the host. It reads text the PDF already…
от nodetool-ai★ 674 звезды на GitHubОб этом скилле
PDF text in the sandbox
Specifier: @nodetool-ai/sandbox-pdf. Import it at the top of the body.
pdf-parse drives pdf.js, which needs Node builtins and a canvas; 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 document to plain text
import { extractText } from "@nodetool-ai/sandbox-pdf";
const bytes = await workspace.readBytes("report.pdf");
const text = await extractText(bytes);
All pages concatenated, in order, with no page markers.
extractPages — one item per page
import { extractPages } from "@nodetool-ai/sandbox-pdf";
const pages = await extractPages(bytes);
// [{ index: 0, pageNumber: 1, text: "Quarterly report" }, ...]
Get the bytes from workspace.readBytes, or from a fetched body with
await response.bytes().
Gotchas
- Both exports are async.
- 10 MB per document. Larger input is refused by name.
- No OCR. Both exports read the text layer the PDF already carries. A
scanned page is an image and comes back empty — run
@nodetool-ai/sandbox-ocrover the page image, or a vision model, for that. - Text only. Neither export reads images, tables as tables, or form fields. Layout is approximated from text positions, so column order in a multi-column page is not guaranteed.
- An encrypted or malformed PDF throws with the reason pdf.js gives.
Установить sandbox-pdf в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sandbox-pdf?
Extract the embedded text of a PDF, whole or per page, in a Code node or CodeAct action, with pdf-parse running on the host. It reads text the PDF already carries; it does not OCR a scanned page.
Как установить скилл sandbox-pdf?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sandbox-pdf запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic