{"uid":"cap_gM1c0dsssAWOAF6bsAoec","slug":"agentdiet-spa-markdown-reader-dbac9d45","name":"AgentDiet SPA Markdown Reader","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/spa-markdown-reader?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_Qr_Jvp3LWKvSU9gt50IHu","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 web page (including single-page apps) and converts it to compressed, token-efficient Markdown for AI agent consumption","exampleAgentPrompt":"Can you fetch https://docs.example.com/getting-started and convert it to compact markdown — I need to fit it into my context window without burning a ton of tokens?","exampleUseCases":[{"title":"Distill SPA docs into context","prompt":"Go to https://react.dev/learn and pull the content as compressed markdown so I can include it in my agent's context without hitting token limits."},{"title":"Read competitor landing page","prompt":"Fetch https://www.competitor.com and convert the whole page to minimal markdown — I want to analyze what they're saying without wasting my context budget."},{"title":"Extract article content for summarization","prompt":"Grab the article at https://techcrunch.com/2024/05/01/some-article/ and give me a clean, token-efficient markdown version so I can summarize it."}],"resultDescription":"A JSON object with status 'ok', a data field containing the page content converted to Markdown, and an roi_proof object showing the compression_ratio_pct (e.g. 91.4%) achieved relative to the raw HTML input.","failureModes":["URL is unreachable or returns non-200 — endpoint may return an error status","JavaScript-heavy SPA fails to render fully before extraction","URL parameter missing — request rejected","Paywalled or bot-blocked pages may return incomplete or empty content","Payment not settled in USDC on Base — x402 payment required before content is returned"],"whenToPreferThis":"Choose this endpoint when you need to fetch and read web pages — especially JavaScript-rendered single-page apps — inside an AI agent pipeline where token efficiency is critical. It is particularly valuable when the raw HTML would be too large for the context window and you need aggressive compression (up to 91%+ reduction). Prefer it over generic scrapers when you need clean Markdown output optimized for LLM consumption, and when you are already operating in an x402/USDC micropayment environment on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:48.751Z","isFirstParty":false,"canonicalSlug":"agentdiet-spa-markdown-reader-dbac9d45"}