{
  "slug": "lz-string-compress",
  "name": "gizza-ai/lz-string-compress",
  "version": "0.1.0",
  "title": "LZ-String Compress & Decompress — gizza.ai",
  "description": "Compress and decompress text with LZ-String in your browser — Base64, URL-safe, or UTF-16 output, byte-compatible with the lz-string JS library. Free, private.",
  "tags": [
    "lz-string",
    "lzstring",
    "compress",
    "decompress",
    "base64",
    "url safe",
    "encodeduricomponent",
    "utf16",
    "localstorage"
  ],
  "category": "encoding",
  "urls": {
    "page": "https://gizza.ai/tools/lz-string-compress/",
    "markdown": "https://gizza.ai/tools/lz-string-compress/index.md",
    "descriptor": "https://gizza.ai/tools/lz-string-compress/tool.json",
    "deep_link_example": "https://gizza.ai/tools/lz-string-compress/?text=Paste%20text%20to%20compress%2C%20or%20an%20LZ-String%20payload%20to%20decompress&mode=compress&format=base64"
  },
  "cli": "gizza tool lz-string-compress \"Paste text to compress, or an LZ-String payload to decompress\"",
  "tool": {
    "description": "Compress or decompress text with LZ-String (pieroxy's lz-string). mode='compress' (default) or 'decompress'; format='base64' (default), 'uri' (URL-safe), or 'utf16'. Byte-compatible with the lz-string JavaScript library.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "format": {
          "default": "base64",
          "enum": [
            "base64",
            "uri",
            "utf16"
          ],
          "type": "string"
        },
        "mode": {
          "default": "compress",
          "enum": [
            "compress",
            "decompress"
          ],
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  }
}