{"uid":"cap_gDgEUFIw5J8vPlIwOwNfg","slug":"agentshelf-syntexa-ch-html-to-plain-text-279992ae","name":"agentshelf.syntexa.ch HTML to Plain Text","description":"Call when an agent needs HTML converted to plain text (scripts and styles removed). No network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/html-to-text first.","url":"https://agentshelf.syntexa.ch/v1/html-to-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","examples":["<p>Hello <b>world</b></p>"],"maxLength":200000,"minLength":1,"description":"HTML to convert to plain text. Scripts and styles are dropped."}}},"responseSchema":null,"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_MG0x07PkD643F5L6DpO0P","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":"Converts an HTML string to plain text by stripping all scripts, styles, and markup tags","exampleAgentPrompt":"Take this HTML page source and strip out all the scripts, styles, and tags — I just want the plain readable text: <html><body><h1>Hello</h1><script>alert(1)</script><p>World</p></body></html>","exampleUseCases":[{"title":"Clean scraped webpage for LLM input","prompt":"I scraped this webpage and got back a big blob of HTML — can you strip all the tags, scripts, and CSS so I just get the plain readable text I can feed to my summarizer?"},{"title":"Extract readable content from email HTML","prompt":"This HTML email template I received is full of inline styles and script blocks. Strip all of that out and give me just the plain text so I can read what it actually says."},{"title":"Sanitize user-submitted HTML content","prompt":"A user submitted this HTML through our form and I need to turn it into plain text before storing it — remove all the tags, scripts, and styling."}],"resultDescription":"Plain text string with all HTML tags, script blocks, and style blocks removed, leaving only the human-readable text content of the original HTML document.","failureModes":["Empty or missing 'html' field returns validation error","HTML input exceeding 200,000 characters is rejected","Malformed JSON body causes a 400 error","Payment not provided or incorrect amount results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a fast, server-side, deterministic HTML-to-text conversion with no network calls to external URLs and no LLM inference — ideal for preprocessing HTML before passing to a language model or storing as plain text. Prefer the free sandbox endpoint at /v1/sandbox/html-to-text when available to avoid the $0.001 USDC charge.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:42:28.580Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-html-to-plain-text-279992ae"}