{"uid":"cap_GyfIms3s4Auj32SuVYWSN","slug":"agentshelf-html-numeric-encoder-8203f16a","name":"AgentShelf HTML Numeric Encoder","description":"Call when an agent needs text encoded with html-numeric. No network and no LLM. Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/html-numeric-encode first.","url":"https://agentshelf.syntexa.ch/v1/html-numeric-encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["Hello, World!"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.009","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_csa1p94i8KnGuvX7cmuh-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes input text using HTML numeric character encoding (&#NNN; notation) without any network calls or LLM processing.","exampleAgentPrompt":"Can you encode this text using HTML numeric character references: 'Hello <World> & \"Friends\"'?","exampleUseCases":[{"title":"Safe HTML content injection","prompt":"I need to embed this user-submitted comment into an HTML page safely — can you encode it with HTML numeric entities so special characters like <, >, &, and quotes don't break anything? The text is: 'Great product! <script>alert(\"xss\")</script>'"},{"title":"Email template character escaping","prompt":"Encode this subject line using HTML numeric character references so it renders correctly in email HTML: 'Björn's café — 50% off today!'"},{"title":"Encoding special Unicode for HTML output","prompt":"I have this string with accented and special characters that needs to go into a static HTML file — please convert it to HTML numeric entities: 'Résumé: naïve élève çà & là'"}],"resultDescription":"Returns the input text with all characters (or at least special/non-ASCII characters) replaced by their HTML numeric character references (e.g. &#60; for <, &#38; for &). No network requests or model inference are involved; the transformation is deterministic and purely computational.","failureModes":["Empty or missing 'text' field returns a validation error","Text exceeding 100,000 characters is rejected","Payment failure or missing x402 payment header results in 402 response","Malformed JSON body returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, fast, server-side HTML numeric encoding of a text string without any LLM or network overhead. Prefer the free sandbox equivalent at POST /v1/sandbox/html-numeric-encode when available to avoid the $0.009 USDC charge. Use this paid endpoint when the sandbox is unavailable or when you need guaranteed production-grade uptime. Do not use for URL encoding, Base64, or HTML named-entity encoding — this encodes strictly to numeric (decimal) HTML character references.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:14.357Z","isFirstParty":false,"canonicalSlug":"agentshelf-html-numeric-encoder-8203f16a"}