# Inline JavaScript Budget Decision

> Inline JavaScript Budget Decision is a paid API for AI agents from webtechnik.halowerk.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-17).

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.

## Facts

- Endpoint: POST https://webtechnik.halowerk.com/v1/inline-script-budget-decision?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/inline-javascript-budget-decision-6f0e789a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S49xiHKezQzc1HMIjDfIN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability inline-javascript-budget-decision-6f0e789a -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/inline-javascript-budget-decision-6f0e789a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from webtechnik.halowerk.com](https://www.zero.xyz/host/webtechnik.halowerk.com/llms.txt)
