{
  "abp": "0.1",
  "app": {
    "id": "com.bobninja.markdown-converter",
    "name": "Markdown Converter",
    "version": "1.0.0",
    "description": "Convert Markdown to HTML in real-time with styled export options"
  },
  "capabilities": [
    {
      "name": "convert.markdownToHtml",
      "description": "Convert Markdown text to HTML using GitHub Flavored Markdown",
      "inputSchema": {
        "type": "object",
        "properties": {
          "markdown": {
            "type": "string",
            "description": "Markdown content to convert"
          },
          "options": {
            "type": "object",
            "properties": {
              "gfm": {
                "type": "boolean",
                "description": "Enable GitHub Flavored Markdown (default: true)"
              },
              "breaks": {
                "type": "boolean",
                "description": "Enable line breaks (default: true)"
              }
            }
          }
        },
        "required": ["markdown"]
      }
    },
    {
      "name": "render.styledHtml",
      "description": "Render raw HTML as a styled HTML document or email-ready fragment with embedded CSS and theme support",
      "inputSchema": {
        "type": "object",
        "properties": {
          "html": {
            "type": "string",
            "description": "Raw HTML content to style (e.g., output from convert.markdownToHtml)"
          },
          "options": {
            "type": "object",
            "properties": {
              "theme": {
                "type": "string",
                "enum": ["light", "dark"],
                "description": "Color theme (default: light)"
              },
              "format": {
                "type": "string",
                "enum": ["document", "email"],
                "description": "Output format: 'document' for full HTML document with embedded CSS, copy buttons, and scripts; 'email' for email-ready fragment suitable for pasting into Gmail, Outlook, etc. (default: document)"
              },
              "headerText": {
                "type": "string",
                "description": "Header text for PDF print styles (document format only)"
              },
              "footerText": {
                "type": "string",
                "description": "Footer text for PDF print styles (document format only)"
              }
            }
          }
        },
        "required": ["html"]
      }
    },
    {
      "name": "export.html",
      "description": "Export styled HTML as a downloadable file with embedded CSS, code block copy buttons, and theme-aware colors",
      "inputSchema": {
        "type": "object",
        "properties": {
          "html": {
            "type": "string",
            "description": "Raw HTML content to export (e.g., output from convert.markdownToHtml)"
          },
          "options": {
            "type": "object",
            "properties": {
              "theme": {
                "type": "string",
                "enum": ["light", "dark"],
                "description": "Color theme (default: light)"
              },
              "filename": {
                "type": "string",
                "description": "Suggested filename (default: export.html)"
              },
              "headerText": {
                "type": "string",
                "description": "Header text for print styles"
              },
              "footerText": {
                "type": "string",
                "description": "Footer text for print styles"
              }
            }
          }
        },
        "required": ["html"]
      }
    }
  ]
}
