# agent402.tools Markdown Round-Trip Converter

> agent402.tools Markdown Round-Trip Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Converts Markdown to HTML and back to Markdown in a single call, proving round-trip fidelity and returning both formats from one input.

## Facts

- Endpoint: POST https://agent402.tools/api/skill/markdown-convert
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-markdown-round-trip-converter-e6dc434f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l3BSSasf7h4usW8mZHvcR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-markdown-round-trip-converter-e6dc434f -d '<json body>'
```

Example prompt: Take this markdown text and run it through a full markdown-to-HTML-and-back round trip so I get both the HTML version and the recovered Markdown in one shot: '# Hello World\n\nThis is a **test** paragraph with a [link](https://example.com).'

## When to prefer this

Choose this endpoint when you need both HTML and Markdown outputs from a single Markdown input in one call, or when you want to verify that your Markdown survives an HTML round-trip without data loss. It saves orchestrating three separate tool calls and pays a single flat fee of $0.05 USDC.

## Known failure modes

- Malformed or empty markdown input returns a validation error
- Extremely large markdown documents may time out or be rejected
- Non-markdown plain text may produce unexpected or minimal HTML output
- Network or payment (x402) failures result in a non-200 response with no conversion output

## How this service works

Bundled execution of the Markdown to HTML round-trip workflow - Markdown to HTML and back - a round-trip conversion that proves fidelity and gives you both formats from one input. One x402 payment runs 3 underlying tools (markdown-to-html, html-to-markdown, text-diff); partial-success per step.

## Output

Returns both the HTML rendered from the input Markdown and the Markdown recovered from that HTML, demonstrating round-trip fidelity. Three underlying tools (markdown-to-html, html-to-markdown, and a fidelity check) are bundled into a single response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "markdown": {
   "type": "string",
   "description": "Markdown text to convert"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {
   "markdown": "# Hello\\n\\nThis is **bold** and _italic_."
  },
  "pack": "markdown-convert",
  "steps": [
   {
    "ok": true,
    "slug": "markdown-to-html",
    "result": {}
   },
   {
    "ok": true,
    "slug": "html-to-markdown",
    "result": {}
   },
   {
    "ok": true,
    "slug": "text-diff",
    "result": {}
   }
  ],
  "summary": "3/3 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-markdown-round-trip-converter-e6dc434f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
