{"uid":"cap_KrzL2PWe2oFYGuKdDwwv5","slug":"signaldesk-ai-text-line-count-d23f272e","name":"SignalDesk AI – Text Line Count","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/text/line-count?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":4096,"description":"Text to process."}}},"responseSchema":{"type":"json","example":{"lines":2}},"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_cQAlnq2pqXiTs_vY6SOVq","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":"Counts the number of lines in a given text string and returns the line count as a number.","exampleAgentPrompt":"Count the number of lines in this text for me: 'Line one here\nLine two here\nLine three here' — I need the exact line count.","exampleUseCases":[{"title":"Validate log file line count","prompt":"I just got this server log dump as a string — can you count how many lines are in it so I know if any were dropped during transfer?"},{"title":"Check poem or essay structure","prompt":"Here's a poem I wrote — can you count how many lines it has? I want to make sure it's exactly 14 lines for the sonnet format."},{"title":"Measure code snippet length","prompt":"Count the lines in this code snippet I pasted — I need to know if it's under 100 lines before I submit it."}],"resultDescription":"Returns a JSON object with a single integer field 'lines' representing the total number of lines found in the submitted text (e.g. {\"lines\": 2}).","failureModes":["Text exceeds 4096 character limit — request rejected","Empty or missing 'text' field — may return 0 or an error","Malformed JSON body — returns a parsing error","Payment not provided or insufficient — 402 Payment Required response blocking execution"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic line count for a text string up to 4096 characters and are operating in a micropayment-enabled (x402) environment. It is a simple, bounded computation — ideal for agents that need to verify document structure, enforce line limits, or audit text content without standing up their own string-processing logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:42:01.711Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-text-line-count-d23f272e"}