Skip to main content
Deprecated: These tools have been removed as built-in tools. Use bash commands with appropriate packages or install a skill that provides this functionality. The tools are documented here for reference only.
Read, create, merge, and inspect PDF documents.
Text output is capped at 50,000 characters (MAX_TEXT_OUTPUT). Uses pdf-lib for creation/merging and pdftotext CLI for text extraction.

pdf_read — Read PDF Text

Extract text content from a PDF file.

Parameters

ParameterTypeRequiredDescription
pathstringyesPath to the PDF file
pagesnumber[]noSpecific pages to extract (1-indexed)
max_charsnumbernoMaximum characters to return (default 50000)

Returns

Extracted text content from the PDF, truncated at max_chars.

Notes

  • Page numbers are 1-indexed
  • Falls back to returning metadata only if pdftotext CLI is not available on the system
  • Text is extracted page by page with page markers

pdf_create — Create PDF

Create a new PDF file with text content.

Parameters

ParameterTypeRequiredDescription
pathstringyesDestination file path
pagesarray of {text, font_size?}yesPage content (min 1). Each object has a text string and an optional font_size number
titlestringnoPDF document title metadata
authorstringnoPDF document author metadata

Returns

Confirmation with the file path and page count.

Notes

  • Uses Helvetica font
  • 50pt margins on all sides
  • Text is auto-wrapped to fit within page margins

pdf_merge — Merge PDFs

Combine multiple PDF files into a single document.

Parameters

ParameterTypeRequiredDescription
inputsstring[]yesPaths to input PDF files (min 2)
outputstringyesDestination path for the merged PDF

Returns

Confirmation with the output path and total page count.

Notes

  • PDFs are merged in the order provided
  • All pages from each input file are included

pdf_info — PDF Metadata

Get metadata and structure information about a PDF file.

Parameters

ParameterTypeRequiredDescription
pathstringyesPath to the PDF file

Returns

Object with page count, title, author, and page dimensions (width and height for the first 10 pages).

Notes

  • Dimensions are reported for the first 10 pages only
  • Returns available metadata fields (title, author, subject, creator, producer, creation date, modification date)