Api2Pdf MCP by usefulapi is an MCP server published by io.usefulapi, hosted at api2pdf.usefulapi.io. When last checked on 2026-11-21 it was working: it answers and lists its tools. It declares 16 tools, including api2pdf_html_to_pdf, api2pdf_url_to_pdf, api2pdf_markdown_to_pdf, api2pdf_html_to_image, api2pdf_url_to_image.
MCP server for Api2Pdf — generate PDFs & images from HTML, URLs or office files; merge, barcodes.
3,945 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Render an HTML string to a PDF using the headless-Chrome engine. Returns a { FileUrl } link (valid ~24h) by default. Great for invoices, reports, and letters produced as HTML. BILLED per document. Api2Pdf API: POST /chrome/pdf/html.
| Parameter | Type | Description |
|---|---|---|
| html * | string | The HTML source to render into a PDF. |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object | Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
{
"name": "api2pdf_html_to_pdf",
"title": "HTML to PDF (Chrome)",
"description": "Render an HTML string to a PDF using the headless-Chrome engine. Returns a { FileUrl } link (valid ~24h) by default. Great for invoices, reports, and letters produced as HTML. BILLED per document. Api2Pdf API: POST /chrome/pdf/html.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"html"
],
"properties": {
"html": {
"type": "string",
"description": "The HTML source to render into a PDF."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "HTML to PDF (Chrome)",
"destructiveHint": true
}
}Fetch a web page by URL and render it to a PDF using headless Chrome. Returns a { FileUrl } (valid ~24h). Use extraHTTPHeaders to pass auth for a protected page. BILLED. Api2Pdf API: POST /chrome/pdf/url.
| Parameter | Type | Description |
|---|---|---|
| url * | string | The URL of the web page Api2Pdf will fetch and render to PDF. |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object | Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
Render a Markdown string to a PDF using headless Chrome. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /chrome/pdf/markdown.
| Parameter | Type | Description |
|---|---|---|
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| markdown * | string | The Markdown source to render into a PDF. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object | Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
Render an HTML string to an image using headless Chrome. Returns a { FileUrl } (valid ~24h) by default, or base64 bytes with output_binary:true. BILLED. Api2Pdf API: POST /chrome/image/html.
| Parameter | Type | Description |
|---|---|---|
| html * | string | The HTML source to render into an image. |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object | Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
Take a screenshot of a live web page by URL using headless Chrome. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /chrome/image/url.
| Parameter | Type | Description |
|---|---|---|
| url * | string | The URL of the web page to screenshot. |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object | Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
Render an HTML string to a PDF using the wkhtmltopdf engine — an alternate to Chrome that supports a table of contents (pass enableToc / tocOptions inside `options`). Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /wkhtml/pdf/html.
| Parameter | Type | Description |
|---|---|---|
| html * | string | The HTML source to render into a PDF. |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object | Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
Convert an office document (Word, Excel, PowerPoint, ODT, and many more) at a URL to a PDF using LibreOffice. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /libreoffice/any-to-pdf.
| Parameter | Type | Description |
|---|---|---|
| url * | string | URL of the source document to convert to PDF. |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object | Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
Merge several existing PDFs (given as URLs, in order) into a single PDF. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/merge.
| Parameter | Type | Description |
|---|---|---|
| urls * | array | URLs of the PDFs to merge, in the order they should appear (at least two). |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object | Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
Compress an existing PDF (given as a URL) to reduce its file size. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/compress.
| Parameter | Type | Description |
|---|---|---|
| url * | string | URL of the PDF to compress. |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object | Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
Extract a range of pages from an existing PDF (given as a URL) into a new PDF. `start`/`end` are 0-based page indices; omit `end` to extract a single page. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/extract-pages.
| Parameter | Type | Description |
|---|---|---|
| end | integer | 0-based index of the last page to extract. Omit for a single page (just `start`). |
| url * | string | URL of the source PDF. |
| start | integer | 0-based index of the first page to extract. Default 0. |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object |
Encrypt an existing PDF (given as a URL) with a user password (required to open) and an optional owner password (controls permissions). Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/password.
| Parameter | Type | Description |
|---|---|---|
| url * | string | URL of the PDF to protect. |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| userpassword * | string | Password required to OPEN the resulting PDF. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| ownerpassword | string | Optional owner password controlling permissions (printing, editing, etc.). |
| extraHTTPHeaders |
Convert a document or file (given as a URL — PDF, Office docs, and more) to Markdown text via MarkItDown. Great for feeding a document's contents back to an agent. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /markitdown.
| Parameter | Type | Description |
|---|---|---|
| url * | string | URL of the document/file to convert to Markdown. |
| inline | boolean | If true (Api2Pdf default), the generated file is served inline; if false, as an attachment. |
| options | object | Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf. |
| storage | object | Custom storage target, used when useCustomStorage is true. |
| fileName | string | A name for the generated file, e.g. 'invoice.pdf'. |
| output_binary | boolean | If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link). |
| extraHTTPHeaders | object | Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
Generate a barcode or QR code image. `format` is the symbology (e.g. 'QRCode', 'Code128', 'PDF417', 'DataMatrix') and `value` is the string to encode. Returns a { FileUrl } (valid ~24h) by default, or base64 with output_binary:true. BILLED. Api2Pdf API: GET /zebra.
| Parameter | Type | Description |
|---|---|---|
| value * | string | The string to encode in the barcode/QR code. |
| width | integer | Image width in pixels. |
| format * | string | Barcode/QR symbology, e.g. 'QRCode', 'Code128', 'PDF417', 'DataMatrix'. |
| height | integer | Image height in pixels. |
| showlabel | boolean | If true, render the encoded value as a human-readable label under the barcode. |
| output_binary | boolean | If true, return the raw image bytes as base64 instead of a FileUrl. Default false. |
{
"name": "api2pdf_generate_barcode",
"title": "Generate barcode / QR code (Zebra)",
"description": "Generate a barcode or QR code image. `format` is the symbology (e.g. 'QRCode', 'Code128', 'PDF417', 'DataMatrix') and `value` is the string to encode. Returns a { FileUrl } (valid ~24h) by default, or base64 with output_binary:true. BILLED. Api2Pdf API: GET /zebra.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"format",
"value"
],
"properties": {
"value": {
"type": "string",
"description": "The string to encode in the barcode/QR code."
},
"width": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Image width in pixels.",
"exclusiveMinimum": 0
},
"format": {
"type": "string",
"description": "Barcode/QR symbology, e.g. 'QRCode', 'Code128', 'PDF417', 'DataMatrix'."
},
"height": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Image height in pixels.",
"exclusiveMinimum": 0
},
"showlabel": {
"type": "boolean",
"description": "If true, render the encoded value as a human-readable label under the barcode."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw image bytes as base64 instead of a FileUrl. Default false."
}
}
},
"annotations": {
"title": "Generate barcode / QR code (Zebra)",
"destructiveHint": true
}
}Return the remaining balance / usage for the configured Api2Pdf account. Api2Pdf API: GET /balance.
No parameters.
{
"name": "api2pdf_get_balance",
"title": "Get account balance",
"description": "Return the remaining balance / usage for the configured Api2Pdf account. Api2Pdf API: GET /balance.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "Get account balance",
"readOnlyHint": true
}
}Return the current Api2Pdf service / health status. Api2Pdf API: GET /status.
No parameters.
{
"name": "api2pdf_get_status",
"title": "Get service status",
"description": "Return the current Api2Pdf service / health status. Api2Pdf API: GET /status.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {}
},
"annotations": {
"title": "Get service status",
"readOnlyHint": true
}
}Delete a previously generated file by its ResponseId (the `ResponseId` returned in a generation response). Api2Pdf API: DELETE /file/{ResponseId}.
| Parameter | Type | Description |
|---|---|---|
| responseId * | string | The ResponseId of the generated file to delete (from a prior generation response). |
{
"name": "api2pdf_delete_file",
"title": "Delete a generated file",
"description": "Delete a previously generated file by its ResponseId (the `ResponseId` returned in a generation response). Api2Pdf API: DELETE /file/{ResponseId}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"responseId"
],
"properties": {
"responseId": {
"type": "string",
"description": "The ResponseId of the generated file to delete (from a prior generation response)."
}
}
},
"annotations": {
"title": "Delete a generated file",
"destructiveHint": true
}
}Tools for Api2Pdf, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "Turn this web page into a PDF: https://example.com/price-list"; "Merge these three PDF links into one document, in the order I list them."; "How much balance do I have left for converting documents to PDF?". Read-only tools never change data; ask the user before a tool that creates, changes or deletes Api2Pdf data. Free plan: 50 tool calls per month. Run api2pdf_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run api2pdf_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run api2pdf_upgrade without a plan: it returns both plans, each with a payment link for the user to open. api2pdf_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
{
"name": "api2pdf_url_to_pdf",
"title": "URL to PDF (Chrome)",
"description": "Fetch a web page by URL and render it to a PDF using headless Chrome. Returns a { FileUrl } (valid ~24h). Use extraHTTPHeaders to pass auth for a protected page. BILLED. Api2Pdf API: POST /chrome/pdf/url.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "The URL of the web page Api2Pdf will fetch and render to PDF."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "URL to PDF (Chrome)",
"destructiveHint": true
}
}{
"name": "api2pdf_markdown_to_pdf",
"title": "Markdown to PDF (Chrome)",
"description": "Render a Markdown string to a PDF using headless Chrome. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /chrome/pdf/markdown.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"markdown"
],
"properties": {
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"markdown": {
"type": "string",
"description": "The Markdown source to render into a PDF."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "Markdown to PDF (Chrome)",
"destructiveHint": true
}
}{
"name": "api2pdf_html_to_image",
"title": "HTML to image (Chrome)",
"description": "Render an HTML string to an image using headless Chrome. Returns a { FileUrl } (valid ~24h) by default, or base64 bytes with output_binary:true. BILLED. Api2Pdf API: POST /chrome/image/html.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"html"
],
"properties": {
"html": {
"type": "string",
"description": "The HTML source to render into an image."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "HTML to image (Chrome)",
"destructiveHint": true
}
}{
"name": "api2pdf_url_to_image",
"title": "URL to image / screenshot (Chrome)",
"description": "Take a screenshot of a live web page by URL using headless Chrome. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /chrome/image/url.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "The URL of the web page to screenshot."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "URL to image / screenshot (Chrome)",
"destructiveHint": true
}
}{
"name": "api2pdf_wkhtml_to_pdf",
"title": "HTML to PDF (wkhtmltopdf)",
"description": "Render an HTML string to a PDF using the wkhtmltopdf engine — an alternate to Chrome that supports a table of contents (pass enableToc / tocOptions inside `options`). Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /wkhtml/pdf/html.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"html"
],
"properties": {
"html": {
"type": "string",
"description": "The HTML source to render into a PDF."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "HTML to PDF (wkhtmltopdf)",
"destructiveHint": true
}
}{
"name": "api2pdf_office_to_pdf",
"title": "Office document to PDF (LibreOffice)",
"description": "Convert an office document (Word, Excel, PowerPoint, ODT, and many more) at a URL to a PDF using LibreOffice. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /libreoffice/any-to-pdf.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "URL of the source document to convert to PDF."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "Office document to PDF (LibreOffice)",
"destructiveHint": true
}
}{
"name": "api2pdf_merge_pdfs",
"title": "Merge PDFs (PDFSharp)",
"description": "Merge several existing PDFs (given as URLs, in order) into a single PDF. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/merge.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"urls"
],
"properties": {
"urls": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 2,
"description": "URLs of the PDFs to merge, in the order they should appear (at least two)."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "Merge PDFs (PDFSharp)",
"destructiveHint": true
}
}{
"name": "api2pdf_compress_pdf",
"title": "Compress PDF (PDFSharp)",
"description": "Compress an existing PDF (given as a URL) to reduce its file size. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/compress.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "URL of the PDF to compress."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "Compress PDF (PDFSharp)",
"destructiveHint": true
}
}| Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
{
"name": "api2pdf_extract_pages",
"title": "Extract PDF pages (PDFSharp)",
"description": "Extract a range of pages from an existing PDF (given as a URL) into a new PDF. `start`/`end` are 0-based page indices; omit `end` to extract a single page. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/extract-pages.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url"
],
"properties": {
"end": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "0-based index of the last page to extract. Omit for a single page (just `start`)."
},
"url": {
"type": "string",
"description": "URL of the source PDF."
},
"start": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "0-based index of the first page to extract. Default 0."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "Extract PDF pages (PDFSharp)",
"destructiveHint": true
}
}| object |
| Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file). |
| useCustomStorage | boolean | If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it. |
{
"name": "api2pdf_add_password",
"title": "Password-protect PDF (PDFSharp)",
"description": "Encrypt an existing PDF (given as a URL) with a user password (required to open) and an optional owner password (controls permissions). Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/password.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url",
"userpassword"
],
"properties": {
"url": {
"type": "string",
"description": "URL of the PDF to protect."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"userpassword": {
"type": "string",
"description": "Password required to OPEN the resulting PDF."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"ownerpassword": {
"type": "string",
"description": "Optional owner password controlling permissions (printing, editing, etc.)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "Password-protect PDF (PDFSharp)",
"destructiveHint": true
}
}{
"name": "api2pdf_convert_to_markdown",
"title": "Convert document to Markdown (MarkItDown)",
"description": "Convert a document or file (given as a URL — PDF, Office docs, and more) to Markdown text via MarkItDown. Great for feeding a document's contents back to an agent. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /markitdown.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "URL of the document/file to convert to Markdown."
},
"inline": {
"type": "boolean",
"description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment."
},
"options": {
"type": "object",
"description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"storage": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Pre-signed destination URL for the upload."
},
"method": {
"type": "string",
"description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
}
},
"description": "Custom storage target, used when useCustomStorage is true."
},
"fileName": {
"type": "string",
"description": "A name for the generated file, e.g. 'invoice.pdf'."
},
"output_binary": {
"type": "boolean",
"description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link)."
},
"extraHTTPHeaders": {
"type": "object",
"description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"useCustomStorage": {
"type": "boolean",
"description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it."
}
}
},
"annotations": {
"title": "Convert document to Markdown (MarkItDown)",
"destructiveHint": true
}
}