{"uid":"cap_twcX9b-U5ZqkUyxpYY---","slug":"agentshelf-hex-color-regex-extractor-d50acfc1","name":"Agentshelf Hex Color Regex Extractor","description":"Call when an agent needs hex colors extracted from text, capped at 20 matches. An empty match list is billed. No network. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/regex-hex-color first.","url":"https://agentshelf.syntexa.ch/v1/regex-hex-color?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["#ff00aa"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yk1xa1ZSXKU06OgMPwoaR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts all hex color codes (up to 20 matches) from a provided text string using regex pattern matching.","exampleAgentPrompt":"Can you extract all the hex color codes from this CSS snippet for me? Here it is: 'body { background: #1a2b3c; color: #fff; border: 1px solid #FF5733; }'","exampleUseCases":[{"title":"Pull palette from CSS source","prompt":"I have this CSS file content and I need to know every hex color used in it — can you scan it and list all the hex codes? Here's the text: 'h1 { color: #333333; } a { color: #0066CC; } .highlight { background: #FFDD00; }'"},{"title":"Extract colors from design token file","prompt":"Here's a raw design token file with a bunch of color definitions mixed into other text — can you pull out just the hex color codes for me? The content is: 'primary: #2D3E50, secondary: #E74C3C, accent: #1ABC9C, neutral: #95A5A6'"},{"title":"Find hex codes in marketing copy","prompt":"I need to find any hex color codes embedded in this HTML email template text so I can audit the brand colors used — can you extract them all? The template snippet is: '<td style=\"background:#004080\"><font color=\"#FFFFFF\">Sale!</font></td>'"}],"resultDescription":"Returns a list of up to 20 hex color code strings found in the input text, matched via regex. If no hex colors are present, an empty list is returned — but the call is still billed at $0.002 USDC.","failureModes":["Empty match list returned when no hex colors are present in text — still billed","Input text exceeds 100,000 character limit — request rejected","Missing or empty 'text' field — validation error","More than 20 hex colors in text — only first 20 returned, remainder silently truncated"],"whenToPreferThis":"Use this endpoint when you need a quick, no-network regex extraction of hex color codes from text and are willing to pay $0.002 USDC per call. Prefer the free POST /v1/sandbox/regex-hex-color endpoint first if available. Choose this over general-purpose LLM color parsing when you need deterministic, regex-exact matching rather than approximate extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T00:53:35.278Z","isFirstParty":false,"canonicalSlug":"agentshelf-hex-color-regex-extractor-d50acfc1"}