# Agent Tools Text Format Converter

> Agent Tools Text Format Converter is a paid API for AI agents from agent-tools.jbarkules.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-30).

Converts content between text formats: HTML↔Markdown, HTML→plain text, and CSV↔JSON

## Facts

- Endpoint: POST https://agent-tools.jbarkules.workers.dev/v1/convert?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-tools-text-format-converter-35b442a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mIyZuX_piouJVsK2gZcbP

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 agent-tools-text-format-converter-35b442a1 -d '<json body>'
```

Example prompt: Convert this HTML snippet to markdown: '<h1>Hello</h1><p>This is a <strong>test</strong> paragraph.</p>'

## When to prefer this

Choose this endpoint when you need lightweight, single-call format conversion between HTML, Markdown, plain text, CSV, or JSON without standing up your own parsing logic. Ideal for agents doing content pipeline work, CMS integrations, or data normalization at low per-call cost ($0.003 USDC). Prefer this over general-purpose LLM-based conversion when you need deterministic, structured output rather than approximate reformatting.

## Known failure modes

- Unsupported format pair (e.g. JSON→HTML is not a valid pair) — likely returns an error or empty response
- Malformed input content that cannot be parsed — may return a partial or error response
- Empty input string — may return empty output
- Input schema validation failure if `from`, `to`, or `input` fields are missing

## How this service works

Convert text formats. JSON body {from, to, input}. Pairs: html->markdown, markdown->html, csv->json, json->csv, html->text.

## Output

A JSON object with an `output` field containing the converted content. For CSV-to-JSON the output is an array of objects; for all other conversions the output is the transformed string in the target format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "enum": [
    "csv",
    "json",
    "html",
    "markdown",
    "text"
   ],
   "type": "string"
  },
  "from": {
   "enum": [
    "csv",
    "json",
    "html",
    "markdown"
   ],
   "type": "string"
  },
  "input": {
   "type": "string",
   "description": "Content to convert"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "output": [
   {
    "qty": "2",
    "name": "widget"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-tools-text-format-converter-35b442a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-tools.jbarkules.workers.dev](https://www.zero.xyz/host/agent-tools.jbarkules.workers.dev/llms.txt)
