{"uid":"cap_S49xiHKezQzc1HMIjDfIN","slug":"inline-javascript-budget-decision-6f0e789a","name":"Inline JavaScript Budget Decision","description":"Inline JavaScript budget decision fetches current public evidence from the supplied target and evaluates the documented criterion. It returns the observation, threshold, verdict, exact evidence source, limitations and a mode-specific action. The check is passive: no login attempt, payload injection, exploit, purchase, form submission or load test is performed.","url":"https://webtechnik.halowerk.com/v1/inline-script-budget-decision?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"target":{"type":"string","maxLength":2048,"minLength":3,"description":"Public HTTP(S) URL or domain to inspect. A bare domain is normalized to HTTPS."},"context":{"type":"object","description":"Optional non-secret correlation labels returned unchanged only in the request lifecycle.","maxProperties":12,"additionalProperties":{"type":["string","number","boolean","null"]}},"baseline":{"type":["object","null"],"description":"Optional baseline returned by a previous snapshot call.","additionalProperties":true},"compare_url":{"type":"string","maxLength":2048,"minLength":3,"description":"Optional public comparison URL. Used by change and monitoring services."}}},"responseSchema":null,"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_3_e61vqWMeJjIvB-D7qTM","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":"Passively inspects a public URL and decides whether its inline JavaScript volume meets an acceptable budget threshold, returning an observation, verdict, evidence source, and recommended action.","exampleAgentPrompt":"Can you check whether https://example.com is within its inline JavaScript budget — I need to know the observation, verdict, and what action I should take?","exampleUseCases":[{"title":"Pre-launch inline JS compliance check","prompt":"Before we push this release live, can you audit https://staging.myapp.com and tell me whether the inline JavaScript is within budget and what I should do if it's not?"},{"title":"Comparing inline JS between two versions","prompt":"I want to compare the inline script size between https://mysite.com and https://v2.mysite.com — can you check whether either one exceeds the inline JavaScript budget and show me the difference?"},{"title":"Ongoing performance monitoring for a client site","prompt":"Can you check https://clientwebsite.com to see if their inline JavaScript is still within budget? I need the verdict and the exact evidence so I can include it in my weekly performance report."}],"resultDescription":"Returns a structured payload containing the measured inline JavaScript observation (e.g. total inline script bytes), the budget threshold used, a pass/fail verdict, the exact evidence source (URL or page element), any limitations of the passive check, and a mode-specific recommended action — all without performing any login, payload injection, or active exploit.","failureModes":["Target URL is unreachable or returns a non-2xx status, causing the check to fail with a network or HTTP error","Supplied URL resolves to a login-gated or paywalled page, limiting observable inline script evidence","Malformed or non-HTTP(S) URL input results in a validation error","Target page uses heavy client-side rendering, so server-fetched inline JS may underrepresent actual runtime scripts","Rate limiting or firewall rules on the target site may block the passive fetch"],"whenToPreferThis":"Use this endpoint when you need a quick, passive, no-side-effect pass/fail decision specifically on inline JavaScript budget for a public URL — particularly in CI/CD pipelines, automated performance audits, or agent-driven quality gates. Prefer it over generic performance audit tools when you want a structured verdict with an explicit threshold and actionable recommendation rather than a raw metrics dump. If you need to audit inline CSS or other page-weight dimensions, use the sibling endpoints on the same host.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:35:42.714Z","isFirstParty":false,"canonicalSlug":"inline-javascript-budget-decision-6f0e789a"}