{"uid":"cap_UcaJcm2yt19x5C8dGI-u_","slug":"one-engine-text-normalize-line-endings-t2-102e38ab","name":"ONE Engine Text Normalize Line Endings (t2)","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/text-normalize/line-endings/t2?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text up to 50000 characters"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iK4Ql2XVat3-X8hQOQfUL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes line endings in text, converting mixed or non-standard newline sequences to a consistent format.","exampleAgentPrompt":"Can you normalize the line endings in this text so they're all consistent? Here's the content: 'Hello\r\nWorld\nFoo\r\nBar'","exampleUseCases":[{"title":"Cross-platform script cleanup","prompt":"I've got a shell script that was edited on Windows and now has CRLF line endings — can you normalize all the line endings so it works properly on Linux?"},{"title":"Preprocessing text before parsing","prompt":"Before I run this log file through my parser, can you clean up the line endings so they're all uniform? The file has a mix of \\r\\n and \\n throughout."},{"title":"Sanitizing user-submitted content","prompt":"A user pasted some text into our form from a Word document and it has weird line breaks — can you normalize all the line endings so it's consistent before I store it?"}],"resultDescription":"Returns a JSON object containing the normalized text with standardized line endings replacing any mixed or non-standard newline sequences (e.g. CRLF, CR, or other variants).","failureModes":["Text exceeds 50000 character limit — request rejected","Empty or missing 'text' field — validation error","Payment not attached or insufficient — 402 Payment Required","Malformed JSON body — 400 Bad Request"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call solution to normalize line endings in text strings up to 50,000 characters, especially within autonomous agent workflows on Base using x402 micropayments. Prefer it over custom regex logic when you want a reliable, hosted utility without managing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:47.752Z","isFirstParty":false,"canonicalSlug":"one-engine-text-normalize-line-endings-t2-102e38ab"}