{"uid":"cap_4N06Wm8zrfU8ipwdeiJ5v","slug":"brotli-decompressor-agent402-tools-24ed85a3","name":"Brotli Decompressor (agent402.tools)","description":"Decompress a base64-encoded Brotli 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/brotli-decompress","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"Base64-encoded Brotli 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":"brotli","inputBytes":16,"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__NsJRndUbuwpmgjbVz19p","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 Brotli payload and returns the result as UTF-8 text or base64-encoded binary, with a 10MB expansion cap to prevent zip bombs.","exampleAgentPrompt":"I have this base64-encoded Brotli-compressed blob and I need to read what's inside — can you decompress it and give me the UTF-8 text? Here's the payload: 'G2gA8AEB...'","exampleUseCases":null,"resultDescription":"Returns the decompressed content either as a UTF-8 string (for text payloads) or as a base64-encoded string (for binary payloads). Refuses to expand any payload that would exceed 10MB to guard against decompression bomb attacks.","failureModes":["Invalid base64 input — returns error if the input string is not valid base64","Corrupted or invalid Brotli data — returns error if bytes cannot be decompressed as Brotli","Decompression bomb rejection — refuses and errors if the expanded payload would exceed 10MB","Unsupported inputFormat or outputFormat values — returns validation error","Empty or missing input field — returns bad request error"],"whenToPreferThis":"Use this endpoint when you have a Brotli-compressed payload encoded in base64 (or hex) and need to decompress it server-side without installing local Brotli libraries. Particularly useful in agent workflows where Brotli-encoded HTTP responses or data blobs need to be read as text. Prefer this over gzip or zlib decompressors specifically when the compression algorithm is Brotli (br).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:07.213Z","isFirstParty":false}