# Filename Sanitizer

> Filename Sanitizer is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Converts arbitrary text into a safe, cross-platform filename by replacing illegal or problematic characters

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/filename-sanitize
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/filename-sanitizer-237b3cef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CXJ13OA2mUerfd34TcTo_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability filename-sanitizer-237b3cef
```

Example prompt: Can you sanitize this text so it's safe to use as a filename on any operating system: "Report: Q1/2024 Results (Final*Draft)?"

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Convert arbitrary filename text into a safe cross-platform filename by replacing illegal characters.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/filename-sanitizer-237b3cef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
