{"uid":"cap_KP4lMAesI0WJ3gy8dJF8c","slug":"x402-utility-tools-unique-lines-filter-c55ec857","name":"x402 Utility Tools – Unique Lines Filter","description":"A compact x402 utility surface for agents that need cheap, repeatable non-LLM transformations before spending on heavier routes: CSV cleanup, JSON Schema checks, timestamp conversion, JWT decode, URL normalization, hashes, codecs, and text utilities.","url":"https://x402-utils.558686.xyz/v1/tools/unique-lines?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"ok":true,"tool":"unique-lines","input":{"text":"alpha\nbeta\nalpha","trim":true,"caseSensitive":false},"route":"/v1/tools/unique-lines","result":{"uniqueText":"uniqueText_example","uniqueLines":[],"removedCount":1},"project":"x402-utility-tools","deterministic":true}},"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.0001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5v20ZMHUv3qFBN6WaSxeY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes duplicate lines from a text input, returning only unique lines with optional trimming and case-sensitivity control.","exampleAgentPrompt":"Take this list of names — 'Alice\\nBob\\nalice\\nCharlie\\nBob' — and remove all duplicate lines, treating matches as case-insensitive and trimming whitespace, then tell me how many duplicates were removed.","exampleUseCases":[{"title":"Deduplicating scraped keyword lists","prompt":"I scraped a bunch of keywords from multiple pages and combined them into one list — can you remove all the duplicate lines from it? Treat comparisons as case-insensitive and trim any extra spaces."},{"title":"Cleaning up a user-submitted tag list","prompt":"A user submitted a form with tags separated by newlines and there are a bunch of repeats. Strip out the duplicate lines for me — case-insensitive — and tell me how many were removed."},{"title":"Normalizing log entries before processing","prompt":"I have a block of log lines and want to deduplicate them before further analysis. Remove repeated lines with trimming enabled and case-sensitive matching, and give me back the unique lines."}],"resultDescription":"Returns a JSON object with 'ok' true, the tool name, the original input, and a 'result' object containing: 'uniqueText' (the deduplicated text as a single string), 'uniqueLines' (array of unique lines), and 'removedCount' (integer count of how many duplicate lines were removed).","failureModes":["Empty or missing 'text' field may return an error or empty result","Very large text inputs may exceed size limits or time out","Malformed JSON body returns a 4xx error","Payment failure or insufficient USDC balance returns HTTP 402"],"whenToPreferThis":"Choose this endpoint when you need a cheap ($0.002 USDC), deterministic, non-LLM deduplication of newline-separated text with control over trimming and case sensitivity. Prefer it over LLM-based approaches for speed, cost, and reproducibility. Use it as a preprocessing step before heavier analysis or storage operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T06:35:32.205Z","isFirstParty":false,"canonicalSlug":"x402-utility-tools-unique-lines-filter-c55ec857"}