DicePDF
v0.1.0Local-first PDF tools for AI agents: merge, split, extract, render, compress.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pdf_extract_text Extract text from a PDF (local, private)
Extract text from a local PDF as plain text, Markdown, or JSON. The file is read from disk and never uploaded.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
format | string | Output format (default: text) |
output | string | Optional path to write the extracted text to |
pdf_merge Merge PDFs (local, private)
Merge multiple local PDFs into one, in the given order. Files stay on disk.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | Input PDF paths, in order |
output * | string | Path to write the merged PDF |
pdf_split Split a PDF (local, private)
Split a local PDF by page ranges, specific pages, or into every page. Outputs are written to a directory.
| Parameter | Type | Description |
|---|---|---|
input * | string | Path to the input PDF |
mode * | string | |
outputDir * | string | Directory to write the parts into |
pages | array | 1-based page numbers for mode "pages" |
ranges | array | Inclusive 1-based ranges for mode "ranges" |
pdf_rotate Rotate PDF pages (local, private)
Rotate all (or selected) pages of a local PDF by 90/180/270°.
| Parameter | Type | Description |
|---|---|---|
angle * | number | Rotation in degrees |
input * | string | |
output * | string | |
pages | array | 1-based page numbers; omit to rotate all |
pdf_delete_pages Delete PDF pages (local, private)
Remove the given 1-based pages from a local PDF.
| Parameter | Type | Description |
|---|---|---|
input * | string | |
output * | string | |
pages * | array | 1-based pages to remove |
pdf_compress Compress a PDF (local, private)
Compress a local PDF. Default mode is structural (lossless, keeps text); set aggressive to rasterize pages for much smaller scan-heavy files.
| Parameter | Type | Description |
|---|---|---|
input * | string | |
output * | string | |
aggressive | boolean | Rasterize pages to shrink image-heavy PDFs (drops selectable text) |
pdf_to_image Render PDF pages to images (local, private)
Rasterize a local PDF to PNG or JPEG images, one file per page, written to a directory.
| Parameter | Type | Description |
|---|---|---|
input * | string | |
outputDir * | string | Directory to write the images into |
dpi | number | Dots per inch (default 150) |
format | string | |
pages | array | 1-based page numbers; omit to render all |
pdf_strip_metadata Strip PDF metadata (local, private)
Remove Title/Author/Producer/XMP and the document ID from a local PDF.
| Parameter | Type | Description |
|---|---|---|
input * | string | |
output * | string | |
keepId | boolean | Keep the trailer /ID instead of clearing it |
pdf_watermark Watermark a PDF (local, private)
Stamp a text watermark across every page of a local PDF.
| Parameter | Type | Description |
|---|---|---|
input * | string | |
output * | string | |
text * | string | |
fontSize | number | |
opacity | number | |
position | string |
pdf_add_page_numbers Add page numbers (local, private)
Stamp page numbers onto every page of a local PDF.
| Parameter | Type | Description |
|---|---|---|
input * | string | |
output * | string | |
format | string | |
position | string |
pdf_metadata Inspect a PDF (local, private)
Report page count, AcroForm presence, and signature flag for a local PDF.
| Parameter | Type | Description |
|---|---|---|
input * | string |