{"uid":"cap_GY5GEEzjCqHQQyCtgavyZ","slug":"agentshelf-lines-reverse-c782d85d","name":"AgentShelf Lines Reverse","description":"Call when an agent needs lines of text transformed with reverse. No network. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/lines-reverse first.","url":"https://agentshelf.syntexa.ch/v1/lines-reverse?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.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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bOPlEt1OTtITKXynb-Jc7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reverses the order of lines in a given text string, with no network calls or LLM involvement.","exampleAgentPrompt":"Can you reverse the order of lines in this text? 'line one\nline two\nline three\nline four'","exampleUseCases":[{"title":"Reverse log file line order","prompt":"I have a log dump where the oldest entries are at the bottom — can you flip the line order so the most recent events appear first? Here's the text: 'ERROR 09:01 disk full\nWARN 08:55 high memory\nINFO 08:30 service started'"},{"title":"Invert a ranked list","prompt":"I've got a ranking list ordered best-to-worst, but I need it worst-to-best instead. Reverse the line order for me: '1. Alice\n2. Bob\n3. Carol\n4. Dave'"},{"title":"Flip a poem or stanza","prompt":"Take this stanza and reverse the line order so the last line becomes the first: 'The stars shine bright\nThe moon is high\nThe night grows deep\nGoodbye to light'"}],"resultDescription":"Returns the input text with all lines reversed in order (last line becomes first, first line becomes last), delivered as a plain text string with no additional metadata.","failureModes":["Empty or missing 'text' field returns a validation error","Text exceeding 100,000 characters is rejected","Payment of exactly $0.002 USDC required; incorrect payment amount causes a 402 error","Malformed request body returns a 400 error"],"whenToPreferThis":"Use this endpoint when you need a deterministic, server-side line reversal with no LLM involvement, no external network calls, and a guaranteed exact output. Prefer the free unpaid POST /v1/sandbox/lines-reverse endpoint first if available; use this paid endpoint when the sandbox is unavailable or for production use. Ideal when you need a reliable, non-probabilistic text transformation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:12.509Z","isFirstParty":false,"canonicalSlug":"agentshelf-lines-reverse-c782d85d"}