Api2Pdf MCP by usefulapi

MCP server for Api2Pdf — generate PDFs & images from HTML, URLs or office files; merge, barcodes.

使うべきか

品質と安全性

A
説明の品質
94%
スキーマの完全性
91%
命名の品質
80%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(3)

  • LOWTool 'api2pdf_url_to_image' description lacks action verbapi2pdf_url_to_image 内
  • LOWTool 'api2pdf_merge_pdfs' description lacks action verbapi2pdf_merge_pdfs 内
  • LOWTool 'api2pdf_compress_pdf' description lacks action verbapi2pdf_compress_pdf 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~5,854トークン数(ツール定義)
~3.7 KB一般的なレスポンスサイズ
注意への影響は大きい(128k コンテキストの 4.57%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "api2pdf": {
      "url": "https://api2pdf.usefulapi.io/mcp"
    }
  }
}

リモートエンドポイント

https://api2pdf.usefulapi.io/mcpstreamable-http

できること

ツール一覧

ツール(16)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🔴api2pdf_html_to_pdf(html, inline, fileName, options, useCustomStorage, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "description": "The HTML source to render into a PDF."
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "html"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_url_to_pdf(url, inline, fileName, options, useCustomStorage, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The URL of the web page Api2Pdf will fetch and render to PDF."
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_markdown_to_pdf(markdown, inline, fileName, options, useCustomStorage, ...)

Render a Markdown string to a PDF using headless Chrome. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /chrome/pdf/markdown.

入力スキーマ

{
  "type": "object",
  "properties": {
    "markdown": {
      "type": "string",
      "description": "The Markdown source to render into a PDF."
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "markdown"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_html_to_image(html, inline, fileName, options, useCustomStorage, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "description": "The HTML source to render into an image."
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "html"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_url_to_image(url, inline, fileName, options, useCustomStorage, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The URL of the web page to screenshot."
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_wkhtml_to_pdf(html, inline, fileName, options, useCustomStorage, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "description": "The HTML source to render into a PDF."
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "html"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_office_to_pdf(url, inline, fileName, options, useCustomStorage, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "URL of the source document to convert to PDF."
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_merge_pdfs(urls, inline, fileName, options, useCustomStorage, ...)

Merge several existing PDFs (given as URLs, in order) into a single PDF. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/merge.

入力スキーマ

{
  "type": "object",
  "properties": {
    "urls": {
      "minItems": 2,
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "URLs of the PDFs to merge, in the order they should appear (at least two)."
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "urls"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_compress_pdf(url, inline, fileName, options, useCustomStorage, ...)

Compress an existing PDF (given as a URL) to reduce its file size. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/compress.

入力スキーマ

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "URL of the PDF to compress."
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_extract_pages(url, start, end, inline, fileName, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "URL of the source PDF."
    },
    "start": {
      "description": "0-based index of the first page to extract. Default 0.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "end": {
      "description": "0-based index of the last page to extract. Omit for a single page (just `start`).",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_add_password(url, userpassword, ownerpassword, inline, fileName, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "URL of the PDF to protect."
    },
    "userpassword": {
      "type": "string",
      "description": "Password required to OPEN the resulting PDF."
    },
    "ownerpassword": {
      "description": "Optional owner password controlling permissions (printing, editing, etc.).",
      "type": "string"
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "url",
    "userpassword"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_convert_to_markdown(url, inline, fileName, options, useCustomStorage, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "URL of the document/file to convert to Markdown."
    },
    "inline": {
      "description": "If true (Api2Pdf default), the generated file is served inline; if false, as an attachment.",
      "type": "boolean"
    },
    "fileName": {
      "description": "A name for the generated file, e.g. 'invoice.pdf'.",
      "type": "string"
    },
    "options": {
      "description": "Engine-specific render options (page size, margins, orientation, headers/footers, etc.). Passed through verbatim to Api2Pdf.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "useCustomStorage": {
      "description": "If true, Api2Pdf uploads the result to your own storage (see `storage`) instead of hosting it.",
      "type": "boolean"
    },
    "storage": {
      "description": "Custom storage target, used when useCustomStorage is true.",
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "description": "HTTP method Api2Pdf uses to upload (e.g. 'PUT')."
        },
        "url": {
          "type": "string",
          "description": "Pre-signed destination URL for the upload."
        }
      }
    },
    "extraHTTPHeaders": {
      "description": "Extra HTTP headers Api2Pdf forwards when it fetches a source URL (e.g. auth for a protected page/file).",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "string"
      }
    },
    "output_binary": {
      "description": "If true, return the raw file bytes as base64 instead of a FileUrl. Default false (recommended for agents — returns a short-lived link).",
      "type": "boolean"
    }
  },
  "required": [
    "url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_generate_barcode(format, value, height, width, showlabel, ...)

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.

入力スキーマ

{
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "description": "Barcode/QR symbology, e.g. 'QRCode', 'Code128', 'PDF417', 'DataMatrix'."
    },
    "value": {
      "type": "string",
      "description": "The string to encode in the barcode/QR code."
    },
    "height": {
      "description": "Image height in pixels.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "width": {
      "description": "Image width in pixels.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "showlabel": {
      "description": "If true, render the encoded value as a human-readable label under the barcode.",
      "type": "boolean"
    },
    "output_binary": {
      "description": "If true, return the raw image bytes as base64 instead of a FileUrl. Default false.",
      "type": "boolean"
    }
  },
  "required": [
    "format",
    "value"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢api2pdf_get_balance

Return the remaining balance / usage for the configured Api2Pdf account. Api2Pdf API: GET /balance.

入力スキーマ

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢api2pdf_get_status

Return the current Api2Pdf service / health status. Api2Pdf API: GET /status.

入力スキーマ

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴api2pdf_delete_file(responseId)

Delete a previously generated file by its ResponseId (the `ResponseId` returned in a generation response). Api2Pdf API: DELETE /file/{ResponseId}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "responseId": {
      "type": "string",
      "description": "The ResponseId of the generated file to delete (from a prior generation response)."
    }
  },
  "required": [
    "responseId"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 16 件
検証済みバージョンは記録されていませんツール 16 件
検証済みバージョンは記録されていませんツール 16 件
検証済みバージョンは記録されていませんツール 16 件
観測失敗バージョンは記録されていません—
観測失敗バージョンは記録されていません—