{"uid":"cap_tQ3G_7g5_Fh82-A2tGFbh","slug":"agent402-tools-ipv6-expand-compress-b410ef11","name":"agent402.tools IPv6 Expand/Compress","description":"Expand a compressed IPv6 address to full 8-group notation (:: to 0000:...) or compress a full address by collapsing the longest zero run. Also validates format. Pure CPU, deterministic.","url":"https://agent402.tools/api/ipv6-expand","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"address":{"type":"string","description":"IPv6 address to expand or compress"},"compress":{"type":"boolean","description":"If true, compress instead of expand (default: false)"}}},"responseSchema":{"type":"json","example":{"valid":true,"groups":8,"expanded":"2001:0db8:0000:0000:0000:0000:0000:0001","compressed":"2001:db8::1"}},"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_-RpjPYUEIjFRmErt1yuF-","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":"Expands a compressed IPv6 address to full 8-group notation or compresses a full address by collapsing the longest zero run, with format validation.","exampleAgentPrompt":"Can you expand the IPv6 address 2001:db8::1 to its full 8-group notation like 2001:0db8:0000:0000:0000:0000:0000:0001?","exampleUseCases":null,"resultDescription":"Returns the expanded (or compressed) IPv6 address in the requested format, along with validation status confirming whether the input was a valid IPv6 address.","failureModes":["Invalid IPv6 address format returns a validation error","Missing required 'address' field returns a bad request error","Malformed input that cannot be parsed as IPv6 returns an error","Ambiguous or conflicting :: usage in the input address causes a parse failure"],"whenToPreferThis":"Use this endpoint when you need to normalize IPv6 addresses for comparison, storage, or display — specifically when you need to expand compressed :: notation to full 8-group form or compress a verbose address to its shortest canonical representation. Ideal for pure deterministic, CPU-bound IPv6 formatting with no external dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.629Z","isFirstParty":false}