{"uid":"cap_UNoe9wNjphfKMaKjxy9L1","slug":"agent402-tools-text-hygiene-workflow-de87ade3","name":"agent402.tools Text Hygiene Workflow","description":"Bundled execution of the Text hygiene workflow - Turn a wall of dirty text - chat logs, scraped pages, user-generated content, log dumps - into something safe to store, search, and pipe into the next step. Measure first, redact PII before anything else touches the data, then dedupe, sort, extract entities, surface keywords, and grade the readability of what's left.","url":"https://agent402.tools/api/skill/text-hygiene","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"The raw text dump to clean (max 500KB)"}}},"responseSchema":{"type":"json","example":{"args":{"text":"support log dump"},"pack":"text-hygiene","steps":[{"ok":true,"slug":"text-stats","result":{}},{"ok":true,"slug":"redact","result":{}},{"ok":true,"slug":"dedupe-lines","result":{}},{"ok":true,"slug":"sort-lines","result":{}},{"ok":true,"slug":"extract-entities","result":{}},{"ok":true,"slug":"keywords","result":{}},{"ok":true,"slug":"readability","result":{}}],"summary":"7/7 steps succeeded"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.009","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dVy4RDM-ZrD_3ZhhKHiGA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Cleans raw messy text by measuring quality, redacting PII, and normalizing it into a safe, searchable, pipeline-ready form","exampleAgentPrompt":"Can you clean up this wall of messy scraped text — it has chat logs, user comments, and some log lines mixed in — redact any PII you find, and give me back something safe to store and search through? Here's the raw dump: [paste text here]","exampleUseCases":null,"resultDescription":"Returns sanitized, PII-redacted, normalized text derived from the raw input, ready for storage, search indexing, or piping into a downstream workflow step","failureModes":["Input text exceeds 500KB limit — returns error indicating payload too large","Malformed or non-string text field — returns schema validation error","Service unavailable or payment failure (x402) — returns 402 Payment Required","Empty text input — may return empty or unchanged output"],"whenToPreferThis":"Choose this endpoint when you need an all-in-one bundled text hygiene pass — measuring text quality, redacting PII, and normalizing in a single call — rather than chaining multiple separate cleaning or redaction steps. Ideal for pipelines ingesting untrusted or messy text sources like scraped pages, chat logs, or user-generated content that must be safe before storage or search.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:08:53.042Z","isFirstParty":false}