{"uid":"cap_0irE2Tip0U0e7KETWbrHK","slug":"agentshelf-collapse-space-text-normalizer-80700232","name":"AgentShelf Collapse-Space Text Normalizer","description":"Call when an agent needs text normalized with collapse-space. No network and no LLM. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/norm-collapse-space first.","url":"https://agentshelf.syntexa.ch/v1/norm-collapse-space?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["Hello, World!"],"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.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BvRDP14WGftd1zbt4Ljb7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes input text by collapsing all whitespace sequences into single spaces, with no network calls or LLM involvement.","exampleAgentPrompt":"Can you normalize this text by collapsing all the extra spaces and whitespace into single spaces: 'Hello   world,  this   is   a   test   string   with  lots  of   spaces.'?","exampleUseCases":[{"title":"Clean up OCR-extracted text spacing","prompt":"I just ran OCR on a scanned document and the extracted text has tons of weird double and triple spaces throughout — can you collapse all the extra whitespace so it reads cleanly?"},{"title":"Normalize user-submitted form input","prompt":"A user submitted a form field with a bunch of extra spaces scattered through their message — please collapse all that whitespace down to single spaces before I store it."},{"title":"Standardize log lines before parsing","prompt":"I have a log line like 'ERROR   2024-01-15    server   crashed   unexpectedly' with inconsistent spacing — collapse all the spaces so I can parse it reliably."}],"resultDescription":"Returns the input text with all runs of whitespace (spaces, tabs, newlines) collapsed to a single space character, producing a clean, normalized string.","failureModes":["Empty or missing 'text' field returns a validation error","Input exceeding 100,000 characters is rejected","Payment not provided or insufficient USDC results in a 402 response","Malformed JSON request body returns a 400 error"],"whenToPreferThis":"Use this endpoint when you need a simple, deterministic, offline whitespace normalization with no LLM or network dependency, and you want a guaranteed fixed cost of $0.003 USDC per call. Prefer the free sandbox endpoint POST /v1/sandbox/norm-collapse-space when available to avoid charges.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:04.814Z","isFirstParty":false,"canonicalSlug":"agentshelf-collapse-space-text-normalizer-80700232"}