{"uid":"cap_uo1XM8mubaHNVIo95ZSYf","slug":"newline-lf-final-normalizer-16b06a6b","name":"Newline LF-Final Normalizer","description":"Call when an agent needs newlines normalized to lf-final. No network and no LLM. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/newline-lf-final first.","url":"https://agentshelf.syntexa.ch/v1/newline-lf-final?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.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_vuy6Jv8MhTG8VZ29M5RpY","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":"Normalizes line endings in text to LF (Unix-style) with a final newline, with no network or LLM involved.","exampleAgentPrompt":"Can you normalize all the line endings in this text to LF (Unix-style) and make sure it ends with a final newline? Here's the text: 'Hello\\r\\nWorld\\r\\nFoo\\r\\n'","exampleUseCases":[{"title":"Fix Windows line endings in source code","prompt":"I've got this code snippet with Windows-style CRLF line endings and I need all the line breaks converted to LF so it works correctly on Linux. Can you normalize the newlines in this text: 'function hello() {\\r\\n  console.log(\"hi\");\\r\\n}'"},{"title":"Ensure log output ends with newline","prompt":"This log text I'm processing has inconsistent line endings — some CRLF, some CR-only. Can you standardize them all to LF and make sure there's a final newline at the end? Text: 'INFO: started\\rWARN: retrying\\r\\nERROR: failed'"},{"title":"Normalize pasted user input before storage","prompt":"A user pasted in some notes from a Windows machine and the line endings are all over the place. Can you clean this up so every line break is just \\n and the whole thing ends with a newline? Text: 'Item 1\\r\\nItem 2\\r\\nItem 3'"}],"resultDescription":"Returns the input text with all line endings converted to LF (\\n), including mixed CRLF (\\r\\n) and bare CR (\\r), and ensures the text concludes with a final LF character.","failureModes":["Empty or missing text field returns a validation error","Text exceeding 100,000 characters is rejected","Payment of exactly $0.001 USDC required; missing or incorrect payment returns 402","Malformed JSON body returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, offline text normalization with no LLM overhead and no network calls. Ideal for pipeline preprocessing steps where consistent LF line endings and a trailing newline are required. Use the free sandbox POST /v1/sandbox/newline-lf-final first; fall back to this paid endpoint when the sandbox is unavailable or rate-limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:21.761Z","isFirstParty":false,"canonicalSlug":"newline-lf-final-normalizer-16b06a6b"}