{"uid":"cap_GROx5TJE_IdZcqsyFSt_j","slug":"tanod-utilpeek-text-replace-db654b26","name":"Tanod utilpeek Text Replace","description":"One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.","url":"https://tanod.dev/v1/text/replace?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"find":{"type":"string","maxLength":1000,"minLength":1,"description":"Literal text, or an RE2 pattern (mode=regex; no backreferences or lookaround; \\p{L} for letters)."},"mode":{"enum":["literal","regex"],"type":"string","default":"literal","description":"literal (default: find is plain text) or regex (find is an RE2 pattern)."},"text":{"type":"string","maxLength":200000,"minLength":1,"description":"The text (at most 200,000 characters)."},"dot_all":{"type":"boolean","default":false,"description":"regex: . also matches a newline."},"replace":{"type":"string","maxLength":1000,"description":"Replacement; regex mode: \\1..\\99, \\g<name>, \\\\ for a backslash."},"multiline":{"type":"boolean","default":false,"description":"regex: ^ and $ match at line breaks."},"case_sensitive":{"type":"boolean","default":true,"description":"Match letter case exactly (default true); false ignores case."},"max_replacements":{"type":"integer","default":10000,"maximum":10000,"minimum":1,"description":"Replace at most this many matches, first to last (1-10,000, default 10,000)."}}},"responseSchema":{"type":"json","example":{"mode":"regex","text":"#123 shipped; #456 pending","engine":"RE2 (google-re2 1.1.20251105)","replacements":2,"limit_reached":false}},"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_2kXjDgURvNbU4Vy9yeSDK","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 find-and-replace on text using either literal string matching or RE2 regex patterns (guaranteed linear-time execution).","exampleAgentPrompt":"In this 10,000-character document, replace every occurrence of 'color' with 'colour' using literal mode, case-insensitively, and limit it to 500 replacements.","exampleUseCases":[{"title":"Sanitize PII in log output","prompt":"I have this server log text (about 50,000 characters) and I need you to replace all email addresses matching the RE2 pattern '[a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}' with '[REDACTED]' using regex mode, case-insensitively."},{"title":"Localize spelling across a document","prompt":"Take this 80,000-character article draft and replace every literal instance of 'analyze' with 'analyse', and 'organize' with 'organise' — case-sensitive, all occurrences."},{"title":"Rewrite variable names in code snippet","prompt":"In this code snippet, use regex mode to replace the pattern '\\bfoo_(\\w+)' with 'bar_\\1' so all variables starting with 'foo_' get renamed to 'bar_', and make sure dot_all is off and multiline is on so ^ and $ work per line."}],"resultDescription":"Returns the transformed text with all matching occurrences replaced according to the specified mode (literal or RE2 regex), along with metadata such as the number of substitutions made.","failureModes":["Invalid RE2 regex pattern — lookaheads, lookbehinds, or backreferences not supported; returns error","Text exceeds 200,000 character limit — request rejected","find or text fields missing or empty — validation error","max_replacements out of range (must be 1–10,000) — validation error","Malformed replacement string with invalid capture group references in regex mode"],"whenToPreferThis":"Choose this endpoint when you need guaranteed linear-time regex execution (RE2 semantics) on large text bodies up to 200,000 characters, especially when safety from catastrophic backtracking is required. Prefer it over PCRE-based tools when processing untrusted patterns or when you need RE2-specific features like named capture groups without lookaround. It's ideal for agents doing automated text normalization, code refactoring, or document sanitization at low cost ($0.001/call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:44:25.335Z","isFirstParty":false,"canonicalSlug":"tanod-utilpeek-text-replace-db654b26"}