{
  "name": "contentextractapi",
  "description": "Webpage to Markdown, HTML to Text, and URL to JSON for AI agents and RAG workflows.",
  "tools": [
    {
      "name": "convert_webpage",
      "description": "Fetch and clean one public webpage. Returns markdown, text, or structured JSON.",
      "endpoint": "/api/convert",
      "method": "POST",
      "headers": {
        "authorization": "ce_your_key",
        "content-type": "application/json"
      },
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": { "type": "string", "format": "uri" },
          "format": { "type": "string", "enum": ["markdown", "text", "json"] }
        },
        "required": ["url"]
      }
    },
    {
      "name": "convert_html",
      "description": "Convert pasted HTML into Markdown, plain text, or structured JSON without fetching a URL.",
      "endpoint": "/api/convert",
      "method": "POST",
      "headers": {
        "authorization": "ce_your_key",
        "content-type": "application/json"
      },
      "inputSchema": {
        "type": "object",
        "properties": {
          "html": { "type": "string", "description": "Raw HTML string to convert." },
          "sourceUrl": {
            "type": "string",
            "format": "uri",
            "description": "Optional. Used to resolve relative links in the HTML."
          },
          "format": { "type": "string", "enum": ["markdown", "text", "json"] }
        },
        "required": ["html"]
      }
    }
  ]
}
