{"uid":"cap_buuVn_wSjBEkzQijwPOcU","slug":"agentshelf-lines-longest-5b1f1b0c","name":"AgentShelf Lines Longest","description":"Call when an agent needs lines of text transformed with longest. No network. Exact $0.006 USDC. Prefer unpaid POST /v1/sandbox/lines-longest first.","url":"https://agentshelf.syntexa.ch/v1/lines-longest?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.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vzbjQ2DUVGrzvLcM8Yi_7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns only the longest line(s) from a block of text, filtering out all shorter lines","exampleAgentPrompt":"Can you find the longest line in this text and return just that line: 'apple\nbanana split sundae with toppings\nkiwi'?","exampleUseCases":[{"title":"Log file longest entry finder","prompt":"I have a bunch of server log lines and I want to find whichever line is the longest — can you run this log block through the longest-line filter and return it to me?"},{"title":"Data cleaning max-length row","prompt":"I'm cleaning up a CSV dump I pasted below and I need to identify the longest row in it — can you extract just the longest line from this text for me?"},{"title":"Code file widest line detection","prompt":"Can you scan through this source code snippet and pull out the single longest line? I'm trying to enforce an 80-character line limit and want to see the worst offender."}],"resultDescription":"The endpoint returns the line or lines from the input text that have the maximum character length, effectively filtering the input down to only its longest line(s). Shorter lines are discarded.","failureModes":["Empty or missing 'text' field returns a validation error","Input text exceeding 100,000 characters is rejected","Payment not provided or insufficient USDC results in HTTP 402 response","Malformed JSON body returns a 400 error"],"whenToPreferThis":"Use this endpoint when you need a simple, stateless, no-network operation to extract the longest line(s) from a block of text. It is ideal for text normalization pipelines, log analysis, data cleaning tasks, or code auditing where identifying the maximum-length line is the goal. Prefer the free sandbox endpoint at POST /v1/sandbox/lines-longest first to avoid the $0.006 USDC charge; use this paid endpoint when 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-23T18:44:44.833Z","isFirstParty":false,"canonicalSlug":"agentshelf-lines-longest-5b1f1b0c"}