{"uid":"cap_t8MbwnsAGSXosXx5N7nPE","slug":"svg-accessibility-audit-85c81d73","name":"SVG Accessibility Audit","description":"Create CC0 game relics, compare public BTC funding data, screen Pennsylvania vendor names, inspect public email-domain DNS, and use small Base USDC agent tools.","url":"https://relic-forge-api.bakongi.chatgpt.site/api/svg-accessibility-audit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}}}},"responseSchema":{"type":"json","example":{"title":{"elementCount":1,"firstHasNonWhitespaceText":true},"method":"bounded lexical checks; not XML parsing","idAudit":{"idAttributeCount":1,"duplicateIdValueCount":0},"rootRole":"img","checkedAt":"2026-10-22T06:24:13.709Z","ariaHidden":false,"inputBytes":167,"settlement":{"network":"base","transaction":"<hash returned after a successful paid call>"},"description":{"elementCount":1,"firstHasNonWhitespaceText":true},"limitations":["This does not parse XML namespaces, fully decode entities, implement the browser accessible-name algorithm, render the SVG, or test any screen reader.","Heuristic counts can include markup-like text in unusual SVG constructs and can miss malformed or nonstandard markup; false positives and false negatives are possible.","A candidate name source or existing ID reference does not prove that assistive technology will announce a useful name.","The SVG is processed in memory only: this endpoint does not fetch URLs, store the markup, or forward it. Submit public, non-confidential SVG markup only."],"rootSvgFound":true,"schemaVersion":1,"ariaLabelledby":{"referenceCount":1,"attributePresent":true,"missingReferenceCount":0},"viewBoxPresent":true,"nameSourceHeuristic":"aria-labelledby_targets_present_content_unverified","ariaLabelNonWhitespace":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_QiOVl5hHr5wyf6_9QSjq8","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":"Performs heuristic accessibility checks on SVG markup, reporting on ARIA attributes, title/description elements, ID uniqueness, and accessible name source quality.","exampleAgentPrompt":"Can you audit this SVG markup for accessibility issues — check if it has a proper title, description, aria-labelledby references, no duplicate IDs, and whether a screen reader would find a usable name: <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' aria-labelledby='t1 d1'><title id='t1'>Magic Relic</title><desc id='d1'>A glowing artifact</desc><circle cx='50' cy='50' r='40'/></svg>","exampleUseCases":[{"title":"Game asset accessibility check","prompt":"I'm building a game UI with inline SVG icons — can you run an accessibility audit on this SVG and tell me if aria-labelledby is wired up correctly, whether the title has real text, and if there are any duplicate IDs? Here's the markup: <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' aria-labelledby='icon-title'><title id='icon-title'>Shield</title><rect x='8' y='8' width='48' height='48'/></svg>"},{"title":"Catch duplicate IDs before shipping","prompt":"Before I deploy this SVG to production, audit it for duplicate ID values and missing aria references — I want to know the idAudit results and whether any aria-labelledby targets are missing: <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' aria-labelledby='lbl'><title id='lbl'>Chart</title><title id='lbl'>Duplicate</title></svg>"},{"title":"Verify accessible name source heuristic","prompt":"Can you check what accessible name source heuristic this SVG would get — aria-label, aria-labelledby, or title — and whether it has a non-whitespace aria-label? Here's the SVG: <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' aria-label='Trophy icon'><circle cx='50' cy='50' r='45'/></svg>"}],"resultDescription":"A JSON object reporting: whether a root <svg> element was found, the count of <title> and <desc> elements and whether the first has non-whitespace text, aria-hidden status, aria-label presence, aria-labelledby reference count and missing reference count, viewBox presence, ID count and duplicate ID count, the inferred accessible name source heuristic, input byte count, schema version, audit timestamp, and an array of known limitations of the heuristic approach. On successful paid calls, a Base network settlement transaction hash is also returned.","failureModes":["Malformed or missing SVG body may return an error or produce inaccurate heuristic counts","Highly nonstandard SVG constructs can cause false positives or false negatives in element counts","Missing payment / x402 auth will result in a 402 payment required response","Namespace-prefixed or entity-encoded markup may not be fully parsed, as XML namespace parsing is not performed","Very large SVG inputs may be rejected or time out"],"whenToPreferThis":"Use this endpoint when you need a fast, lightweight heuristic check of SVG accessibility attributes — especially ARIA labelling, title/desc presence, and ID uniqueness — without spinning up a full browser render or screen reader test. It is best suited for CI pipelines, agent-driven asset validation, or pre-publish checks on inline SVG where a quick signal about accessible name wiring is sufficient. Prefer alternatives if you need full XML parsing, browser accessible-name algorithm compliance, or actual screen reader output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T04:21:06.835Z","isFirstParty":false,"canonicalSlug":"svg-accessibility-audit-85c81d73"}