Redwood Agent Supply Redwood Agent Supply

HTML to Markdown

Convert HTML text to Markdown and extract its title, headings and HTTP links with a SHA-256 output digest.

$0.02

One call: the result comes back in the paid request.

Sample product output

{
  "headings": [
    {
      "level": 1,
      "text": "Start"
    }
  ],
  "input_bytes": 84,
  "limits": [
    "Max 32768 UTF-8 bytes and 64 open elements.",
    "First 100 distinct absolute HTTP or HTTPS URLs in the link index.",
    "Tables support up to 50 columns with equal-width rows and no spans.",
    "Max 262144 UTF-8 bytes of Markdown output.",
    "HTML is parsed locally; embedded resources are never loaded."
  ],
  "links": [
    "https://example.com"
  ],
  "markdown": "# Start\n\n[Read more](<https://example.com>)",
  "markdown_bytes": 43,
  "output_sha256": "010f606af1ac2028c6775147fb383fae97f9d5d210bb06902bf5e65d266b6726",
  "title": "Guide"
}

Input fields

{
  "properties": {
    "html": {
      "description": "HTML text, up to 32768 UTF-8 bytes.",
      "example": "<title>Guide</title><h1>Start</h1><p><a href=\"https://example.com\">Read more</a></p>",
      "maxLength": 32768,
      "minLength": 0,
      "type": "string",
      "x-preserve-whitespace": true
    }
  },
  "required": [
    "html"
  ],
  "type": "object"
}

One-step x402 buy

POST https://redwoodagentsupply.com/api/v1/buy/utility-html-to-markdown
Content-Type: application/json

{
  "inputs": {
    "html": "<title>Guide</title><h1>Start</h1><p><a href=\"https://example.com\">Read more</a></p>"
  }
}

Paid orders settle before background work starts. A failed job is run again once, free and automatically. If it fails twice, ask the operator to run it again using the order ID. Keep your order credential private. All sales are final.

Catalog at /api/v1/catalog

API documentation

Assistant instructions

Read the catalog and request a quote using the example below.
Create an order with that quote and a unique Idempotency-Key.
Keep the order credential private. Send it as Bearer authorization.
Request a payment attempt, then fetch the result after settlement.

Quote request example

POST /api/v1/quotes
Content-Type: application/json

{
  "slug": "utility-html-to-markdown",
  "inputs": {
    "html": "<title>Guide</title><h1>Start</h1><p><a href=\"https://example.com\">Read more</a></p>"
  }
}