Docmint
v0.1.1PDF and image tools for AI agents: compress, merge, split, OCR, sign.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
merge_pdf Merge PDF
Combine several PDFs (and JPG/PNG/WebP images, one page each) into one PDF, in the order given.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
split_pdf Split PDF
Extract pages into one PDF (mode=range), split each comma-separated range into its own PDF (separate), cut every N pages (every), or save every page as a file (all).
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
every | integer | |
mode | string | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
ranges | string | Page range such as "1-3, 5, 8-12" (1-based). Empty = all pages. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
rotate_pdf Rotate PDF
Rotate all pages, or only the given pages, by 90, 180 or 270 degrees clockwise.
| Parameter | Type | Description |
|---|---|---|
degrees * | number | |
input * | object | A file given as a local path or as base64. |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
pages | string | Page range such as "1-3, 5, 8-12" (1-based). Empty = all pages. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
delete_pages Delete pages
Remove the given pages from a PDF.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
pages * | string | Pages to delete, e.g. "2, 5-7". |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
organize_pages Organize pages
Rebuild a PDF from an explicit page order (1-based page numbers; repeat a number to duplicate, omit to drop, 0 for a blank page), with optional per-position rotation.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
order * | array | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
rotations | array |
nup_pdf N-up / booklet
Place 2, 4, 6 or 9 pages per sheet, or impose a booklet for duplex printing and folding.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
borders | boolean | |
gap_mm | number | |
layout | string | |
margin_mm | number | |
orientation | string | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
sheet | string |
compress_pdf Compress PDF
Reduce PDF size. Levels: lossless (Rewrites the file structure. Text, links and quality untouched. Smaller savings.); balanced (Turns pages into 150 DPI images. Great on screen, OK in print. Text can't be selected afterwards.); strong (Turns pages into 110 DPI images. Smallest readable size. Text can't be selected afterwards.); extreme (Turns pages into 80 DPI images. For previews only. Text can't be selected afterwards.). Levels other than lossless rasterise pages, so text stops being selectable. Never returns a larger file.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
level | string | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
watermark_pdf Watermark PDF
Stamp text (or a PNG/JPG image) on every page or on a page range.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
behind_content | boolean | |
color | string | |
font_size | number | |
image | Optional image watermark; used instead of text when given. | |
image_width | number | Image width as a fraction of page width. |
opacity | number | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
pages | string | Page range such as "1-3, 5, 8-12" (1-based). Empty = all pages. |
position | string | |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
rotation | number | |
text | string | |
tile | boolean |
add_page_numbers Add page numbers
Stamp page numbers in the chosen format and position.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
font_size | number | |
format | string | |
margin_mm | number | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
pages | string | Page range such as "1-3, 5, 8-12" (1-based). Empty = all pages. |
position | string | |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
start_number | integer | |
start_page | integer |
crop_pdf Crop PDF
Crop pages by margins given as percentages of the page (0-45), or auto-trim white margins based on the first page's content.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
auto_trim | boolean | |
bottom | number | |
left | number | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
pages | string | Page range such as "1-3, 5, 8-12" (1-based). Empty = all pages. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
right | number | |
top | number |
resize_pages Resize pages
Scale every page to a standard size (A4, Letter, ...) or a custom size in millimetres.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
height_mm | number | |
mode | string | |
orientation | string | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
size | string | |
width_mm | number |
grayscale_pdf Grayscale PDF
Convert pages to grayscale or pure black and white (pages are rasterised; text stops being selectable).
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
dpi | integer | |
mode | string | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
pages | string | Page range such as "1-3, 5, 8-12" (1-based). Empty = all pages. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
pdf_to_images PDF to images
Render pages as JPG, PNG or WebP images at the given resolution.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
dpi | integer | |
format | string | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
pages | string | Page range such as "1-3, 5, 8-12" (1-based). Empty = all pages. |
quality | number | |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
images_to_pdf Images to PDF
Turn JPG, PNG or WebP images into a PDF, one image per page.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | |
margin_mm | number | |
orientation | string | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
page_size | string | |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
text_to_pdf Text to PDF
Typeset plain text or Markdown (headings, lists, bold, italic, code) as a PDF.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
font | string | |
font_size | number | |
margin_mm | number | |
markdown | boolean | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
page_size | string | |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
title | string |
process_image Compress, convert or resize images
Re-encode images: change format (jpeg/png/webp), quality, and resize by max dimensions, exact pixels or percent. EXIF data is dropped.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | |
format | string | |
height | integer | |
max_height | integer | |
max_width | integer | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
percent | number | |
quality | number | |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
width | integer |
protect_pdf Protect PDF
Encrypt a PDF with AES-256 (or AES-128) and set permissions. The owner password defaults to the user password.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
algorithm | string | |
allow_annotating | boolean | |
allow_copying | boolean | |
allow_form_filling | boolean | |
allow_modifying | boolean | |
allow_printing | boolean | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
owner_password | string | |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
user_password | string |
unlock_pdf Unlock PDF
Remove the password from a PDF you have the password for.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
password | string | |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
edit_metadata Edit or strip metadata
Read, change or remove document properties (title, author, subject, keywords, creator, producer, dates). With strip=true everything is removed, including XMP.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
author | string | |
creator | string | |
keywords | string | Comma-separated. |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
producer | string | |
read_only | boolean | Only report the current metadata; write nothing. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
strip | boolean | |
subject | string | |
title | string |
flatten_pdf Flatten PDF
Flatten form fields and annotations into static content (mode=forms, keeps text), or rasterise every page (mode=rasterize, nothing stays editable).
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
dpi | integer | |
mode | string | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
sign_pdf Sign PDF
Place a signature image (PNG with transparency works best) on a page. Position and width are fractions of the page (0-1) measured from the top-left corner; height follows the image's aspect ratio.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
signature * | ||
all_pages | boolean | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
page | integer | |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
width | number | |
x | number | |
y | number |
extract_text Extract text
Extract the text of a PDF (one that has a text layer; use ocr_pdf for scans). Returns the text and optionally writes a .txt/.md file.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
format | string | |
keep_layout | boolean | |
max_chars | integer | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
write_file | boolean |
inspect_pdf Inspect PDF
Report page count and sizes, metadata, encryption and permissions, fonts and whether they are embedded, form fields, bookmarks, attachments and word count.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
compare_pdfs Compare two PDFs
Line-by-line text diff of two PDFs. Returns counts and the changed lines (+ added, - removed).
| Parameter | Type | Description |
|---|---|---|
original * | object | A file given as a local path or as base64. |
revised * | ||
ignore_whitespace | boolean | |
max_lines | integer |
ocr_pdf OCR a scanned PDF or image
Recognise text in a scanned PDF or an image. Produces a searchable PDF (original pages plus an invisible text layer) and/or a .txt file. Languages: eng, spa, fra, deu, ita, por, nld, pol, tur, rus, ara, hin, chi_sim, chi_tra, jpn, kor. The first run downloads the language model.
| Parameter | Type | Description |
|---|---|---|
input * | object | A file given as a local path or as base64. |
dpi | integer | |
language | string | |
output | string | |
output_dir | string | Directory to write results into. Defaults to the input file's folder. |
output_path | string | Write the (single) result to exactly this path. |
return_base64 | boolean | Also return the result bytes inline as base64 (default: only when no file could be written). |
docmint_account Docmint account & allowance
Shows the current plan and how many runs are left today for this machine or API key, and how to sign in or upgrade.
connect_docmint_account Connect a Docmint account
Links this MCP server to the user's Docmint account so runs use their plan (10 a day free, unlimited on Pro). Returns a link the user opens to approve; the connection completes in the background within 10 minutes. Show the link to the user.
list_docmint_tools List Docmint tools
Describe every Docmint tool: the MCP tool name to call, its website name, category, what it does and accepted inputs. Useful before choosing which tool to call.