{"uid":"cap_oWRYh4LF4pVjwtC_X0GMo","slug":"agentshelf-lines-take-20-text-transformer-fb4c6302","name":"AgentShelf Lines Take-20 Text Transformer","description":"Call when an agent needs lines of text transformed with take-20. No network. Send JSON {\"text\":\"b\\na\\n\"}. Exact $0.003 USDC on Base. Try unpaid POST /v1/sandbox/lines-take-20 first.","url":"https://agentshelf.syntexa.ch/v1/lines-take-20?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.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_U6qCI0SAOkrKKOdHVRUOQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the first 20 lines of a submitted block of text, no network calls required","exampleAgentPrompt":"Take the first 20 lines from this text and give them back to me: [paste multi-line text here].","exampleUseCases":[{"title":"Preview long log file output","prompt":"I have a huge server log output — can you give me just the first 20 lines so I can see what's at the top without scrolling through everything?"},{"title":"Truncate CSV data for quick review","prompt":"Here's a big CSV dump. Grab just the first 20 lines for me so I can check the headers and a few rows before processing the whole thing."},{"title":"Clip pasted article to first 20 lines","prompt":"I pasted this long article into my notes — can you pull out only the first 20 lines so I have a quick intro snippet?"}],"resultDescription":"The endpoint returns the first 20 lines of the submitted text, with everything after line 20 discarded. If the text has fewer than 20 lines, all lines are returned unchanged.","failureModes":["Empty or missing text field returns a validation error","Text exceeding 100,000 characters is rejected","Malformed JSON body results in a 400 error","Payment failure or insufficient USDC balance returns a 402 error"],"whenToPreferThis":"Use this endpoint when you need a simple, deterministic take-20 (head) operation on a block of text and want a local, network-free transformation with no external dependencies. Prefer the free sandbox endpoint /v1/sandbox/lines-take-20 first; 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-11T18:55:50.672Z","isFirstParty":false,"canonicalSlug":"agentshelf-lines-take-20-text-transformer-fb4c6302"}