{"uid":"cap_EaEtrToP0ap7wvmKK-hCR","slug":"agentshelf-lines-trim-aa793fa3","name":"AgentShelf Lines Trim","description":"Call when an agent needs lines of text transformed with trim. No network. Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/lines-trim first.","url":"https://agentshelf.syntexa.ch/v1/lines-trim?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_AhN_5kBSLvyU-bYhen8CC","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":"Trims whitespace from each line of a text string with no network I/O, returning the cleaned lines for a flat $0.004 USDC fee.","exampleAgentPrompt":"Can you trim the whitespace from the beginning and end of each line in this text block: '  hello world  \\n   foo bar   \\n  baz  '?","exampleUseCases":[{"title":"Clean pasted data before parsing","prompt":"I just pasted some CSV data copied from a spreadsheet and there are extra spaces at the start and end of each line — can you trim all those lines so I can process it cleanly?"},{"title":"Normalize user-submitted form text","prompt":"A user submitted a multi-line address field with lots of accidental leading and trailing spaces on each line. Can you trim every line so it's properly formatted?"},{"title":"Prepare code snippets for comparison","prompt":"I have a block of code where each line has inconsistent padding I need to strip out before I do a diff — can you trim the whitespace off each line for me?"}],"resultDescription":"The endpoint returns the input text with all leading and trailing whitespace stripped from each individual line, preserving line structure but removing surrounding spaces or tabs per line.","failureModes":["Empty or missing 'text' field returns a validation error","Input exceeding 100,000 characters is rejected","Payment not included or incorrect amount causes a 402 Payment Required response","Malformed request body returns a 400 Bad Request"],"whenToPreferThis":"Use this endpoint when you need a reliable, stateless, server-side line-trim operation without implementing it locally, especially in agentic pipelines where consistent text normalization is required and a small per-call cost is acceptable. Prefer the free sandbox endpoint (/v1/sandbox/lines-trim) for development or testing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T00:54:02.408Z","isFirstParty":false,"canonicalSlug":"agentshelf-lines-trim-aa793fa3"}