{"uid":"cap_CXJ13OA2mUerfd34TcTo_","slug":"filename-sanitizer-237b3cef","name":"Filename Sanitizer","description":"Convert arbitrary filename text into a safe cross-platform filename by replacing illegal characters.","url":"https://x402-zoo.lolagent.workers.dev/api/filename-sanitize","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["filename"],"properties":{"filename":{"type":"string"}}}},"additionalProperties":false}}},"responseSchema":null,"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_UetYNDN0ZXV7b56dTG-BP","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":"Converts arbitrary text into a safe, cross-platform filename by replacing illegal or problematic characters","exampleAgentPrompt":"Can you sanitize this text so it's safe to use as a filename on any operating system: \"Report: Q1/2024 Results (Final*Draft)?\"","exampleUseCases":[{"title":"Clean user-submitted file titles","prompt":"A user just typed 'My File: Version 2/Final (Draft)*' as a filename — can you sanitize it so it's safe to save on Windows, Mac, and Linux?"},{"title":"Auto-generate safe filenames from URLs","prompt":"I'm generating downloadable files from page titles like 'FAQ: What's New? (2024)' — please sanitize that text so it works as a valid filename across all platforms."},{"title":"Normalize attachment names before upload","prompt":"Before I upload this file, can you clean up the name 'Budget <2024> — Final\\Approved.xlsx' so it doesn't have any illegal characters?"}],"resultDescription":"Returns a sanitized version of the input filename string with illegal or unsafe characters replaced, making it safe for use across Windows, macOS, and Linux file systems.","failureModes":["Missing required 'filename' query parameter returns an error","Extremely long filenames may be truncated or cause unexpected behavior","Edge cases with only illegal characters may produce an empty or minimal result"],"whenToPreferThis":"Use this endpoint when you need a quick, reliable, server-side filename sanitization without implementing your own character-replacement logic. Ideal for agents that accept user-generated text as file names or need to store files programmatically across multiple operating systems.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:01:32.962Z","isFirstParty":false}