{"uid":"cap_EjJQCio3uoH-drWmQhlWY","slug":"agentshelf-syntexa-ch-lines-drop-last-06a52e0b","name":"agentshelf.syntexa.ch Lines Drop-Last","description":"Call when an agent needs lines of text transformed with drop-last. No network. Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/lines-drop-last first.","url":"https://agentshelf.syntexa.ch/v1/lines-drop-last?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Jm4-z-cqz9kZKM9YKHh-T","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes the last line from a block of text, returning all preceding lines intact","exampleAgentPrompt":"Take this multiline text and drop the last line: 'apple\nbanana\ncherry\ndate' — give me back everything except the final line.","exampleUseCases":[{"title":"Strip trailing footer from log output","prompt":"I have a block of log output where the last line is always a summary footer I don't need — can you remove just that last line and give me the rest of the log text?"},{"title":"Remove last item from newline list","prompt":"Here's a newline-separated list of filenames: 'report.pdf\ndata.csv\nnotes.txt\nDELETE_ME.tmp' — please drop the last line so I only keep the first three."},{"title":"Trim trailing blank or junk line from pasted text","prompt":"This pasted text has an unwanted trailing line at the bottom. Can you remove the last line and return the cleaned-up version?"}],"resultDescription":"A string containing all lines of the input text except the last one, preserving original line endings and order of the remaining lines.","failureModes":["Empty input or single-line input may return an empty string or the original text unchanged","Input exceeding 100,000 characters will be rejected","Malformed JSON request body returns a 400 error","Insufficient USDC payment returns a 402 Payment Required error"],"whenToPreferThis":"Use this endpoint when you need a deterministic, offline transformation to remove exactly the last line from a text block with no LLM involvement, no network calls, and a fixed $0.004 USDC cost. Prefer the free sandbox endpoint POST /v1/sandbox/lines-drop-last for testing before incurring charges.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:03.569Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-lines-drop-last-06a52e0b"}