{"uid":"cap_xqbFvUMqNHwE2VcH55PIR","slug":"nexus-agent-utilities-clean-lines-546d9e40","name":"NEXUS Agent Utilities – Clean Lines","description":"x402-paid deterministic utilities for autonomous agents","url":"https://x402.nexusword.it/v1/clean-lines?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"count":2,"lines":["a","b"]}},"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_L-8kNPPW6c9H2ZVcWSr66","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":"Splits a text string into its individual non-empty lines, returning a deduplicated or cleaned line array with a count","exampleAgentPrompt":"Take this block of text and split it into clean individual lines, removing any blank or whitespace-only entries, then tell me how many lines there are: \"hello\\n\\nworld\\nfoo\\n\"","exampleUseCases":[{"title":"Parse pasted list into line items","prompt":"I just pasted a messy copied list into my notes with lots of blank lines — can you split it into clean individual entries and tell me how many real lines there are? Here's the text: 'apple\\n\\nbanana\\n\\n\\norange\\n'"},{"title":"Normalize agent-generated text output","prompt":"My pipeline just produced this multiline output and I need it broken into a proper array of non-empty lines before I pass it to the next step: 'step one\\n\\nstep two\\nstep three\\n\\n'"},{"title":"Count lines in a log snippet","prompt":"Can you clean up this log snippet and count how many distinct lines it has? Here it is: 'INFO: started\\n\\nWARN: slow\\nERROR: failed\\n\\n'"}],"resultDescription":"Returns a JSON object containing 'count' (integer number of cleaned lines) and 'lines' (array of non-empty string lines extracted from the input text)","failureModes":["Missing or empty 'text' field returns an error or empty result","Payment not attached or insufficient USDC results in 402 Payment Required response","Extremely large text payloads may be rejected or time out","Malformed JSON body returns a 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, x402-paid microservice to reliably split and clean a multiline text string into an array of non-empty lines with a count — ideal for agent pipelines that require reproducible text normalization without spinning up custom parsing logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T05:45:04.994Z","isFirstParty":false,"canonicalSlug":"nexus-agent-utilities-clean-lines-546d9e40"}