{"uid":"cap_Xkipp0GdFBDWSOs-9f0UX","slug":"coco-lines-text-processor-9799b239","name":"CoCo Lines Text Processor","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/lines?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"op":{"type":"string"},"text":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["op"],"properties":{"op":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"op":"trim","text":"The cat sat on the mat. This is an English example.","count_in":1,"count_out":1},"exampleNote":"Computed offline with demonstration inputs; time/random values are illustrative."},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZTReX6abMtxo4hed7AcgW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs text line operations (e.g. trim, count) on input text via a query-parameter-driven API","exampleAgentPrompt":"Can you trim the lines in this text and tell me how many lines there are before and after: 'The cat sat on the mat. This is an English example.'?","exampleUseCases":[{"title":"Count lines in pasted content","prompt":"How many lines does this block of text have? 'Line one\nLine two\nLine three\nLine four' — use the trim operation and give me the before and after line counts."},{"title":"Clean up blank lines in a document","prompt":"Apply a trim operation to this text to clean it up and tell me how many lines remain after: 'Hello world\n\nThis is a test\n\nGoodbye world'"},{"title":"Validate line count after processing","prompt":"Run the trim op on this text and show me the input and output line counts so I can verify it was cleaned correctly: 'apple\nbanana\n\norange\n'"}],"resultDescription":"Returns a JSON object with the operation name (op), the processed text, the input line count (count_in), and the output line count (count_out) after applying the requested line operation.","failureModes":["Missing required 'op' query parameter returns an error or empty result","Unsupported operation value may return an error or unexpected output","Missing 'text' parameter may result in empty processing with zero line counts","Malformed input text may cause unexpected count results"],"whenToPreferThis":"Choose this endpoint when you need a simple, cheap ($0.001 USDC) text line operation — especially trimming or counting lines — and want a JSON response with both input and output line counts. Best for lightweight text cleanup or line-count verification tasks where a full NLP or document processing API would be overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:44:37.571Z","isFirstParty":false,"canonicalSlug":"coco-lines-text-processor-9799b239"}