{"uid":"cap_7CuMGNz0x0VmkX6MVSvhr","slug":"agentshelf-newline-no-final-normalizer-c9ad00d3","name":"Agentshelf Newline No-Final Normalizer","description":"Call when an agent needs newlines normalized to no-final. No network and no LLM. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/newline-no-final first.","url":"https://agentshelf.syntexa.ch/v1/newline-no-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.002","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.002/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_LPMl4Fl6fkLmryXZbIgI_","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":"Normalizes text by removing any trailing final newline character(s), returning text with no trailing newline","exampleAgentPrompt":"Can you clean up this text by removing any trailing newlines from the end? Here's the text: 'Hello world\nThis is my content\n'","exampleUseCases":[{"title":"Clean pipeline output before storage","prompt":"This script output ends with a newline and it's messing up my database inserts — can you strip the trailing newline from this text: 'user_id: 42\nstatus: active\n'?"},{"title":"Normalize API response text","prompt":"The API response I'm working with has an unwanted newline at the end. Can you remove the trailing newline from this string so it matches my expected format: 'invoice_total: 150.00\n'?"},{"title":"Sanitize user-submitted content","prompt":"A user submitted this bio and it has a trailing newline I need removed before I display it on the profile page: 'Software engineer who loves open source.\n'"}],"resultDescription":"Returns the input text with any trailing newline characters removed from the end, producing a clean string with no final newline. The response is the normalized text string.","failureModes":["Empty or missing 'text' field returns a validation error","Text exceeding 100,000 characters is rejected","Payment of $0.002 USDC not provided or insufficient results in 402 Payment Required","Malformed request body returns 400 Bad Request"],"whenToPreferThis":"Use this endpoint when you need a deterministic, no-LLM, no-network operation to strip trailing newlines from text strings up to 100KB. Prefer the free sandbox endpoint POST /v1/sandbox/newline-no-final for testing or when you want to avoid the $0.002 USDC cost. Choose this paid endpoint for production pipelines where 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-24T00:45:33.271Z","isFirstParty":false,"canonicalSlug":"agentshelf-newline-no-final-normalizer-c9ad00d3"}