{
  "service": "api2pdf",
  "displayName": "API2PDF",
  "categories": [
    "Productivity",
    "Developer Tools"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "API2PDF_API_KEY",
      "description": "API2PDF API key sent with the Authorization header. Sign in to the API2PDF portal to get your key: https://portal.api2pdf.com/."
    }
  ],
  "homepageUrl": "https://www.api2pdf.com",
  "actions": [
    {
      "id": "api2pdf.markdown_to_pdf",
      "service": "api2pdf",
      "name": "markdown_to_pdf",
      "description": "Convert raw Markdown to PDF with API2PDF and return the generated PDF URL plus conversion metadata.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "markdown": {
            "type": "string",
            "minLength": 1,
            "description": "The raw Markdown content to convert to PDF."
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "description": "An optional output PDF file name sent to API2PDF."
          },
          "inline": {
            "type": "boolean",
            "description": "Whether API2PDF should mark the generated PDF for inline display when possible."
          },
          "options": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Advanced Headless Chrome PDF options forwarded to API2PDF as-is. Use the official API2PDF option keys supported by the /chrome/pdf/markdown endpoint."
          }
        },
        "additionalProperties": false,
        "required": [
          "markdown"
        ],
        "description": "Input parameters for converting raw Markdown to PDF."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "pdfUrl": {
            "anyOf": [
              {
                "type": "string",
                "description": "The temporary API2PDF URL for downloading the PDF."
              },
              {
                "type": "null"
              }
            ]
          },
          "success": {
            "type": "boolean",
            "description": "Whether API2PDF reported the Markdown-to-PDF conversion as successful."
          },
          "responseId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The API2PDF response identifier for this conversion request."
              },
              {
                "type": "null"
              }
            ]
          },
          "cost": {
            "anyOf": [
              {
                "type": "number",
                "description": "The conversion cost in USD when returned by API2PDF."
              },
              {
                "type": "null"
              }
            ]
          },
          "mbIn": {
            "anyOf": [
              {
                "type": "number",
                "description": "The input size in megabytes when returned by API2PDF."
              },
              {
                "type": "null"
              }
            ]
          },
          "mbOut": {
            "anyOf": [
              {
                "type": "number",
                "description": "The output size in megabytes when returned by API2PDF."
              },
              {
                "type": "null"
              }
            ]
          },
          "seconds": {
            "anyOf": [
              {
                "type": "number",
                "description": "The processing duration in seconds when returned by API2PDF."
              },
              {
                "type": "null"
              }
            ]
          },
          "error": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream API2PDF error string when one was returned."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "pdfUrl",
          "success",
          "responseId",
          "cost",
          "mbIn",
          "mbOut",
          "seconds",
          "error"
        ],
        "description": "The normalized markdown-to-PDF result returned by API2PDF."
      }
    }
  ]
}
