{"uid":"cap_USCW0gkxRLUPLjMfZJH8p","slug":"pennyrail-text-truncate-limit-characters-08bbb54d","name":"PennyRail Text Truncate – Limit Characters","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.truncate--limit-characters?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_z49g_v2hIREvd9_BdjjOj","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":"Truncates a text string to a specified character limit, returning the shortened version","exampleAgentPrompt":"Truncate this product description to 150 characters: 'Our premium organic cold-brew coffee is slow-steeped for 24 hours using single-origin beans sourced from sustainable farms in Ethiopia, delivering a smooth, rich flavor with low acidity.'","exampleUseCases":[{"title":"Shorten social media caption","prompt":"I need to cut this caption down to 280 characters so it fits in a tweet: 'Join us this Saturday at the downtown farmers market where we'll be showcasing our entire line of handmade artisan cheeses, fresh-baked sourdough breads, and locally sourced seasonal jams and preserves — hope to see you there!'"},{"title":"Trim product listing description","prompt":"Can you truncate this product description to 100 characters for the mobile card view? 'The AirComfort Pro 3000 is our most advanced portable air purifier featuring HEPA-13 filtration, whisper-quiet operation, and smart home integration.'"},{"title":"Clip notification message to fit UI","prompt":"Please shorten this push notification message to 60 characters: 'Your order #48291 has been shipped and is expected to arrive by Thursday, April 24th — click to track your package in real time.'"}],"resultDescription":"Returns the input text clipped to the specified character limit, typically as a string field in a JSON object. The truncated result fits within the requested length constraint.","failureModes":["Missing or malformed 'input' object returns a 400-level error","No character limit specified may cause undefined behavior or no truncation","Non-string input content may cause processing failure","Payment not settled results in 402 Payment Required before processing"],"whenToPreferThis":"Choose this endpoint when you need a simple, paid-per-call text truncation as a microservice — useful in agent pipelines where you want a reliable, stateless character-limit trim without running your own string logic, especially when already operating within the PennyRail x402 payment infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T00:36:41.452Z","isFirstParty":false,"canonicalSlug":"pennyrail-text-truncate-limit-characters-08bbb54d"}