{"uid":"cap_xDzu-078qH970SnrOSI3n","slug":"agentshelf-lines-drop-empty-9cfb5df5","name":"AgentShelf Lines Drop Empty","description":"Call when an agent needs lines of text transformed with drop-empty. No network. Exact $0.005 USDC. Prefer unpaid POST /v1/sandbox/lines-drop-empty first.","url":"https://agentshelf.syntexa.ch/v1/lines-drop-empty?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["b\na\n"],"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.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_I1EBrFn40PyVzYJw-YMNw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes empty lines from a block of text, returning only non-empty lines","exampleAgentPrompt":"Can you clean up this text by removing all the empty lines from it: 'Line one\\n\\nLine two\\n\\n\\nLine three\\n'?","exampleUseCases":[{"title":"Cleaning pasted document content","prompt":"I copied this text from a PDF and it has tons of blank lines between paragraphs — can you strip all the empty lines out of it so it's compact and readable?"},{"title":"Normalizing log file output","prompt":"Here's a chunk of log output with a bunch of empty lines scattered through it: 'INFO: start\\n\\nERROR: failed\\n\\nINFO: done\\n' — can you remove the blank lines so only the actual log entries remain?"},{"title":"Preprocessing form submission text","prompt":"A user submitted this multi-line form response but it has lots of empty lines mixed in — can you filter them out so I just have the actual content lines?"}],"resultDescription":"Returns the input text with all empty (or whitespace-only) lines removed, preserving the order and content of non-empty lines. The output is a cleaned string containing only lines that have at least one character.","failureModes":["Input text is empty or missing — returns a validation error","Input text exceeds 100,000 character limit — returns a payload-too-large error","Malformed JSON body — returns a parse error","Payment not included or insufficient — returns HTTP 402 requiring $0.005 USDC payment"],"whenToPreferThis":"Use this endpoint when you need a deterministic, offline (no network or LLM) transformation to strip empty lines from text. It is faster and cheaper than using a language model for the same task, and produces consistent results. Prefer the free sandbox endpoint /v1/sandbox/lines-drop-empty first if available; use this paid endpoint when the sandbox is unavailable or for production workloads requiring reliability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:49:08.476Z","isFirstParty":false,"canonicalSlug":"agentshelf-lines-drop-empty-9cfb5df5"}