{"uid":"cap_3EV5UEWOpmG_5C4ZxzqfD","slug":"agentdiet-docs-to-markdown-converter-864a172d","name":"AgentDiet Docs-to-Markdown Converter","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/docs-to-markdown?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string"},"mode":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LmRVlZSsKMPxvDkTchN-v","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a document URL and converts its content to clean, token-efficient Markdown, achieving up to 91%+ compression ratio for AI context windows.","exampleAgentPrompt":"Fetch the docs page at https://docs.example.com/api-reference and convert it to clean Markdown so I can use it in my context window without burning tokens.","exampleUseCases":[{"title":"Compress API docs for agent ingestion","prompt":"Take the OpenAI API reference at https://platform.openai.com/docs/api-reference and convert it to lean Markdown — I want to stuff it into my agent's context without hitting the token limit."},{"title":"Convert blog post for RAG pipeline","prompt":"Grab the article at https://blog.example.com/how-llms-work and distill it into clean Markdown so I can index it in my retrieval system without all the HTML junk."},{"title":"Prep competitor pricing page for analysis","prompt":"Pull https://competitor.com/pricing and strip it down to Markdown so my agent can read the pricing table without wasting context on nav bars and footers."}],"resultDescription":"Returns a JSON object with a 'data' field containing the converted Markdown content, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%), confirming how much token bloat was removed.","failureModes":["Invalid or unreachable URL returns an error status","URL points to non-text content (PDF binary, image) may yield empty or malformed markdown","Rate limiting or payment failure (x402) blocks the request","Paywalled or JS-rendered pages may not be fully accessible","Malformed input schema (missing required 'type' or 'method') returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need to feed web documents or documentation pages into an AI agent's context window and want to minimize token usage. It is ideal for RAG pipelines, agent memory ingestion, and any workflow where HTML bloat is a problem. Prefer it over generic web scrapers when compression ratio and Markdown fidelity for LLM consumption are the primary goals.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:48.927Z","isFirstParty":false,"canonicalSlug":"agentdiet-docs-to-markdown-converter-864a172d"}