{"uid":"cap_CR7-3JtbXc4RvpG7Fn2JY","slug":"newline-trim-7aea3bd4","name":"Newline Trim","description":"Call when an agent needs newlines normalized to trim. No network and no LLM. Send JSON {\"text\":\"Hello, World!\"}. Exact $0.01 USDC on Base. Try unpaid POST /v1/sandbox/newline-trim first.","url":"https://agentshelf.syntexa.ch/v1/newline-trim?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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Vv7jZXoD9bzIl8B8XzF3U","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and trims newlines from a text string, with no network calls or LLM involvement, for a fixed $0.01 USDC fee.","exampleAgentPrompt":"Can you normalize and trim the newlines in this text for me: \"Hello\\n\\n\\nWorld\\n\\r\\n\"?","exampleUseCases":[{"title":"Clean up copy-pasted text","prompt":"I just copy-pasted some text from a PDF and it has a bunch of weird newlines and extra blank lines scattered throughout — can you normalize and trim those newlines so it reads cleanly?"},{"title":"Sanitize user input before storage","prompt":"Before I save this user-submitted form text to the database, I want to strip and normalize any inconsistent newline characters from it — can you clean it up?"},{"title":"Standardize log output formatting","prompt":"I have a block of log output with mixed Windows and Unix line endings plus trailing newlines — can you normalize all the newlines and trim it so the formatting is consistent?"}],"resultDescription":"The cleaned text string with newlines normalized and trimmed, returned as a structured response. No external network calls or LLM processing 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 (insufficient USDC) results in 402 response","Malformed request body returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need a simple, deterministic, no-LLM newline normalization and trim on a text string and are willing to pay $0.01 USDC per call. Prefer the free unpaid POST /v1/sandbox/newline-trim endpoint first if available. Use this paid endpoint when the sandbox is unavailable or when you need guaranteed SLA.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:54:11.630Z","isFirstParty":false,"canonicalSlug":"newline-trim-7aea3bd4"}