{
  "x402Version": 2,
  "id": 4837,
  "slug": "4837",
  "resource": "https://x402.freeq.one/tools/mermaid",
  "description": "x402-gateway tool: mermaid — Render a Mermaid diagram to an image (PNG or SVG). Returns a base64-encoded image (MCP content type image). Options: format (png|svg), theme (default|dark|forest|neutral), scale (1-4, PNG only).",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x90b0dC893406d6eA63bb077ED59F5e8340f98d84",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "code": {
              "description": "Mermaid diagram source code, e.g. 'graph TD; A-->B'. Max 50000 chars.",
              "type": "string"
            },
            "format": {
              "description": "Output format (default png). SVG returns vector text.",
              "enum": [
                "png",
                "svg"
              ],
              "type": "string"
            },
            "scale": {
              "description": "Raster scale 1-4, PNG only (default 2).",
              "type": "number"
            },
            "theme": {
              "description": "Mermaid theme (default 'default').",
              "enum": [
                "default",
                "dark",
                "forest",
                "neutral"
              ],
              "type": "string"
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "type": "json"
        }
      },
      "resource": "https://x402.freeq.one/tools/mermaid",
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "x402.freeq.one",
  "lastUpdated": "2026-08-24T06:34:07.505Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-24T06:34:07.232Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.freeq.one",
    "manifest_name": "x402.freeq.one",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}