{"uid":"cap_gN_kUJH2ED34ezUxfI4EO","slug":"agentshelf-css-role-extractor-dbb13bf5","name":"AgentShelf CSS Role Extractor","description":"Call when an agent needs role values via [role] from a public page or HTML (SSRF-safe). Exact $0.008 USDC. Prefer unpaid POST /v1/sandbox/css-role first.","url":"https://agentshelf.syntexa.ch/v1/css-role?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"minLength":8,"description":"Public page to fetch. The selector or profile is fixed by the SKU. Provide url or html."},"html":{"type":"string","examples":["<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta charset=\"utf-8\"><meta name=\"description\" content=\"Desc\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"],"maxLength":200000,"minLength":1,"description":"HTML to extract from locally. Provide html or url. When both are set, html is used."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aPyCJ9AIqnywPFCuWDN5Q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts CSS [role] attribute values from a public webpage or raw HTML string, with SSRF protection.","exampleAgentPrompt":"Can you extract all the CSS role values from this page — https://example.com/dashboard — and tell me what roles are present in the HTML?","exampleUseCases":[{"title":"Accessibility audit of a live page","prompt":"Check https://myapp.io/home and pull out all the role attribute values so I can audit whether the page uses proper ARIA roles."},{"title":"Role extraction from pasted HTML","prompt":"Here's some HTML I copied from a site — can you extract all the [role] values from it and list them for me?"},{"title":"Automated role inventory for QA pipeline","prompt":"Scan https://staging.myproduct.com/checkout and give me every CSS role attribute you find in the page, so I can verify our QA checklist."}],"resultDescription":"Returns the extracted [role] attribute values found in the provided URL or raw HTML content, enabling agents to inspect ARIA/CSS role usage on a page.","failureModes":["URL is unreachable or returns non-200 status — fetch fails","URL points to an internal/private IP (SSRF block) — request rejected","HTML input exceeds 200,000 character limit — validation error","No role attributes found in the document — empty result","Malformed URL or HTML input — parsing error","Payment not provided or insufficient — 402 response"],"whenToPreferThis":"Use this endpoint when you need to extract CSS [role] attribute values from a public web page or raw HTML and want SSRF-safe fetching built in. Prefer the free sandbox POST /v1/sandbox/css-role when available; fall back to this paid endpoint ($0.008 USDC) when the sandbox is unavailable or rate-limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:47:04.120Z","isFirstParty":false,"canonicalSlug":"agentshelf-css-role-extractor-dbb13bf5"}