{"uid":"cap_mIyZuX_piouJVsK2gZcbP","slug":"agent-tools-text-format-converter-35b442a1","name":"Agent Tools Text Format Converter","description":"Convert text formats. JSON body {from, to, input}. Pairs: html->markdown, markdown->html, csv->json, json->csv, html->text.","url":"https://agent-tools.jbarkules.workers.dev/v1/convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"type":"json","example":{"output":[{"qty":"2","name":"widget"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2exY3QN63e_xTp2C5SSLe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts content between text formats: HTML↔Markdown, HTML→plain text, and CSV↔JSON","exampleAgentPrompt":"Convert this HTML snippet to markdown: '<h1>Hello</h1><p>This is a <strong>test</strong> paragraph.</p>'","exampleUseCases":[{"title":"HTML newsletter to markdown archive","prompt":"Take this HTML email body and convert it to markdown so I can store it in our docs repo: '<h2>Weekly Update</h2><ul><li>Feature A shipped</li><li>Bug B fixed</li></ul>'"},{"title":"CSV data to JSON for API ingestion","prompt":"I have this CSV data and need it as JSON to feed into our pipeline — can you convert it? 'name,age,city\\nAlice,30,NYC\\nBob,25,LA'"},{"title":"Markdown blog post to HTML for publishing","prompt":"Convert this markdown post to HTML so I can drop it into our CMS: '# My Post\\n\\nThis is the **intro** paragraph with a [link](https://example.com).'"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:04:02.863Z","isFirstParty":false,"canonicalSlug":"agent-tools-text-format-converter-35b442a1"}