{"uid":"cap_1wyRSgkM5wNyrnKztgP--","slug":"agent402-tools-gunzip-decompressor-36de2d30","name":"agent402.tools Gunzip Decompressor","description":"Decompress a base64-encoded gzip payload. Returns the result as utf8 (text) or base64 (binary). Refuses to expand past 10MB to defend against zip bombs.","url":"https://agent402.tools/api/gunzip","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"Base64-encoded gzip bytes"},"inputFormat":{"type":"string","description":"How `input` is encoded: base64 (default) or hex"},"outputFormat":{"type":"string","description":"Result encoding: utf8 (default, for text) or base64 (for binary)"}}},"responseSchema":{"type":"json","example":{"output":"hello world!","algorithm":"gzip","inputBytes":32,"outputBytes":12}},"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_Aj-2zaGgEcMY8yBVi-AHR","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":"Decompresses a base64-encoded gzip payload and returns the result as UTF-8 text or base64-encoded binary, with a 10MB expansion cap to prevent zip bomb attacks.","exampleAgentPrompt":"I have a base64-encoded gzip payload I received from an API — can you decompress it and give me back the text content? Here it is: H4sIAAAAAAAA/ytJLS4BAAx+f9gEAAAA","exampleUseCases":null,"resultDescription":"Returns the decompressed content of the gzip payload either as a UTF-8 string (for text data) or as a base64-encoded string (for binary data). If the decompressed size would exceed 10MB, the request is refused to protect against zip bomb attacks.","failureModes":["Invalid base64 input — returns error if the input string is not valid base64","Not a valid gzip payload — returns error if the decoded bytes are not a valid gzip stream","Expansion exceeds 10MB limit — request refused to prevent zip bomb exploitation","Invalid inputFormat or outputFormat enum value — returns validation error","Empty input — returns error for missing or empty input field"],"whenToPreferThis":"Use this endpoint when you have a gzip-compressed payload encoded in base64 or hex and need to recover the original content — especially when handling API responses, data files, or binary blobs delivered in compressed form. Prefer this over client-side decompression when running in an environment without native gzip support or when you need safe size-bounded decompression.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:39:07.379Z","isFirstParty":false}