{"uid":"cap_xEPxCRkv4k1EDluxIBHpH","slug":"html-entity-codec-tool-x402-b59383e5","name":"HTML Entity Codec Tool (x402)","description":"Escape text for HTML/XML or decode common HTML entities without calling an upstream model. Pay up to $0.001 per request with x402 USDC on Base. Public paid calls are limited to 1500 input characters and 128 output tokens.","url":"https://gpt55.558686.xyz/v1/tools/html-entity-codec","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","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","additionalProperties":true},"queryParams":{"type":"object","required":["text"],"properties":{"mode":{"enum":["escape","unescape"],"type":"string"},"text":{"type":"string","maxLength":20000,"minLength":1}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ok":{"type":"boolean"},"tool":{"type":"string"},"fetchedAt":{"type":"string"}},"additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gtqI2YCSQpssexEDF7doI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Escapes or unescapes HTML entities in a given text string, paid per-call via x402 USDC microtransaction.","exampleAgentPrompt":"Can you escape the HTML entities in this text so it's safe to embed in a webpage: '<script>alert(\"hello & world\")</script>'?","exampleUseCases":[{"title":"Sanitize user input for HTML","prompt":"I have some user-submitted text that contains characters like <, >, and & that I need to safely embed in a webpage without breaking the HTML. Can you escape all the HTML entities in this string for me: 'Hello <World> & "}],"resultDescription":"A JSON object with ok (boolean), tool name ('htmlEntityCodec'), a summary, and the transformed text (HTML-escaped or HTML-unescaped depending on the mode selected), plus a fetchedAt timestamp.","failureModes":["Missing required 'text' query parameter returns error","Text exceeds 20,000 character limit returns validation error","Invalid mode value (not 'escape' or 'unescape') returns error","Payment failure via x402 prevents access","Service unavailable on the custom domain"],"whenToPreferThis":"Use this endpoint when you need a simple, pay-per-call HTML entity escaping or unescaping utility without a subscription, especially in automated pipelines where you want to pay micro-amounts in USDC per transformation rather than maintain an API subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:33:52.387Z","isFirstParty":false}