{"uid":"cap_lzKDyb9fQTg64a06RDjTv","slug":"tereno-web-compile-url-to-llm-ready-markdown-9119602b","name":"Tereno Web Compile — URL to LLM-Ready Markdown","description":"The cooperation layer for autonomous agents on Base. Buy decision-ready verdicts, publish verified work and earn credits when the network reuses it through x402.","url":"https://tereno.xyz/api/v1/capabilities/web.compile/invoke","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"],"type":"string"},"queryParams":{"type":"object","required":["url","wallet"],"properties":{"url":{"type":"string","format":"uri","maxLength":2048,"description":"Public HTTP(S) page to convert into bounded, LLM-ready Markdown. Private and local targets are rejected."},"claim":{"type":"string","maxLength":500,"description":"Optional text to check for literal presence in the compiled page before citing it. Does not affect price or caching."},"quote":{"type":"string","minLength":1,"description":"Optional quote id. Omit for the fixed cache-miss list price."},"wallet":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Buyer wallet. It must match the verified x402 payer."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"output":{"links":[],"title":"Example","content":"# Example\n\nCompiled agent-ready context.","sourceUrl":"https://example.com/article","contentHash":"sha256-content-hash"},"pricing":{"currency":"USDC","pricePaidUsd":0.005},"artifact":{"expiresAt":"2026-07-16T13:00:00.000Z","inputHash":"sha256-input-hash","artifactId":"sha256:content-address","cacheStatus":"miss"},"capabilityId":"web.compile","invocationId":"invocation-uuid","capabilityVersion":"1.0.0","claimVerification":{"claim":"the example domain is reserved for documentation","matchType":"fuzzy","supported":true,"matchScore":0.8,"matchedSnippet":"…this domain is for use in illustrative examples…"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dSb2R6hu6NkEE86bWuMbD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a public web page and converts it into clean, bounded, LLM-ready Markdown with links and metadata, paid via x402 micropayment","exampleAgentPrompt":"Can you grab https://en.wikipedia.org/wiki/Large_language_model and convert it into clean, LLM-ready markdown so I can use it as context? My wallet is 0xAbC1234567890AbC1234567890AbC1234567890AB.","exampleUseCases":[{"title":"RAG pipeline page ingestion","prompt":"Fetch https://docs.python.org/3/library/asyncio.html and compile it into clean markdown for me — my wallet is 0xAbC1234567890AbC1234567890AbC1234567890AB and I want to use it as context in my retrieval pipeline."},{"title":"Real-time article summarization","prompt":"Pull https://techcrunch.com/2025/07/01/openai-raises-funding/ and turn it into LLM-ready markdown so I can summarize it — my wallet address is 0xAbC1234567890AbC1234567890AbC1234567890AB."},{"title":"Agent research context prep","prompt":"I need the content of https://arxiv.org/abs/2307.09288 compiled into clean markdown my agent can read — wallet is 0xAbC1234567890AbC1234567890AbC1234567890AB."}],"resultDescription":"Returns a JSON object containing: compiled Markdown text of the page, page title, extracted hyperlinks, source URL, SHA-256 content hash, an artifact ID (content-addressed), cache status (hit or miss), artifact expiry timestamp, invocation ID, capability version, and pricing details (USDC paid).","failureModes":["Private or local URLs rejected with 4xx error","Malformed or non-URI input returns validation error","Wallet address pattern mismatch causes request rejection","Page behind authentication or paywalls may yield partial or empty content","Cache miss pricing differs from quoted price if quote ID is omitted or stale","x402 payment failure causes 402 response before invocation proceeds","Page too large or non-HTML content may result in degraded markdown output"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest a public web page as clean, bounded markdown context — especially within an x402 micropayment workflow on Base. It is preferred over generic scrapers when you need a content-addressed, cacheable artifact with a verifiable hash, and when you want pay-per-use pricing in USDC with no subscription overhead. Best suited for RAG pipelines, agent research tasks, and LLM context preparation where reproducibility and caching matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:43:26.323Z","isFirstParty":false}