Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Validate HTML

web.validate_html

ProductionEngine wrapper (Class A)Deterministicstrictmoderatev1.0.0
File inputNo network

Overview

You send HTML you already hold, inline or as a file reference. A disposable Java child runs the pinned Nu Html Checker with a fixed argument vector and returns normalized syntax diagnostics. Markup is accepted only through stdin; URL mode, schema paths, filter files and arbitrary flags are not exposed. A match against the checker is not an accessibility, rendering or live-site guarantee. A successful call costs 2 execution credits. Accepts file input via file_ref — no need to extract file content first.

HTML syntax can be checked mechanically with a pinned checker; fetching a live page would change the privacy and availability model.

Reliability

VNU_JAR_UNAVAILABLE — trigger: pinned jar missing or digest mismatch; retryable: yes after the image is repaired; next: do not send a URL. VNU_CAPACITY_EXCEEDED — trigger: all checker slots busy; retryable: yes with backoff. VNU_EXECUTION_TIMEOUT — trigger: the child did not finish in 8 seconds; retryable: yes, bounded. VNU_OUTPUT_TOO_LARGE — trigger: checker stdout exceeded 2 MiB; retryable: no, reduce the document. VNU_EXECUTION_FAILED — trigger: the child exited without usable JSON; retryable: no unless the pin is restored.

Context footprint

Diagnostics only; document text and host paths are not returned. A successful call costs 2 execution credits.

When to use it

When markup is already in hand and the need is Nu Html Checker syntax diagnostics, not rendering or sanitizing.

When the page still needs fetching, when scripts must run, or when the goal is XSS cleaning rather than syntax.

Powered by the pinned Nu Html Checker vnu.jar 26.8.23 (9b5b796) running as an isolated Java child. MIT license plus bundled notices ship with the pin.

Scope

Note
Validates one HTML document with the pinned Nu Html Checker as an isolated child.

Non-goals

  • Does not test accessibility
  • Does not load, render or execute the document
  • Does not follow links, images or other resources
  • Does not fetch a URL or download a checker update

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

parsingvalidation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call2 credits

File handling

Accepts file_refProduces file_refMax input5 MBMax file size5 MB

File limits

Constraints this skill applies to your input and generated files. The “Limited by” column shows the static source of each cap; none of these can be raised by upgrading your plan.

LimitValueLimited by
Maximum size per input file5 MiBSkill maximum

How we handle your data

Sensitive input, safe output
What this means

This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response does not contain submitted content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
htmlstringNoHTML markup sent inline. Required unless file_ref is supplied instead.
file_refstringNoTenant-scoped opaque file reference to HTML already uploaded. Omit it when the html field is supplied instead.
documentModestringNoHTML or XHTML. Omit it for HTML.
includeWarningsbooleanNoWhether warning-severity checker notes are returned. Omit it for true.
checkEmbeddedCssbooleanNoMust stay false; embedded CSS checking is not exposed in this version.
maxDiagnosticsintegerNoMaximum diagnostics to return; runtime accepts at most 500.

Output schema

FieldTypeRequiredDescription
validbooleanYesTrue when no ERROR-severity diagnostic remains after filtering.
titlestringNoCollapsed title element text when present.
langstringNohtml lang attribute when present.
doctypestringNoCollapsed DOCTYPE payload when present.
documentModestringYesHTML or XHTML mode that was applied.
includeWarningsbooleanYesWhether warnings were requested for this call.
checkerVersionstringYesPinned Nu Html Checker version string reported by the child.
checkerCommitstringYesFrozen upstream git commit of the pinned vnu.jar.
diagnosticsarrayYesDeterministically ordered diagnostics, 0 through 500 entries, with no host paths or raw extracts.
truncatedbooleanYesTrue when more diagnostics existed than maxDiagnostics.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"web.validate_html","input":{"html":"<!DOCTYPE html><html lang=\"en\"><head><title>Hi</title></head><body><p>Hello</p></body></html>"}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("web.validate_html", {"html":"<!DOCTYPE html><html lang=\"en\"><head><title>Hi</title></head><body><p>Hello</p></body></html>"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.
VNU_JAR_UNAVAILABLE503YesA dependency required by this skill is unavailable.
VNU_CAPACITY_EXCEEDED429YesA size, quota, rate, or time limit was exceeded.
VNU_EXECUTION_TIMEOUT503YesA dependency required by this skill is unavailable.
VNU_OUTPUT_TOO_LARGE429NoA size, quota, rate, or time limit was exceeded.
VNU_EXECUTION_FAILED503NoA dependency required by this skill is unavailable.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not test accessibility
  • Does not load, render or execute the document
  • Does not follow links, images or other resources
  • Does not fetch a URL or download a checker update
  • Accessibility audits
  • Live page fetching
  • XSS cleaning, which web.sanitize_html handles

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "web.validate_html",
  "input": {
    "html": "<!DOCTYPE html><html lang=\"en\"><head><title>Hi</title></head><body><p>Hello</p></body></html>"
  }
}

Examples

A complete HTML5 document has no checker errors

Inputjson
{
  "html": "<!DOCTYPE html><html lang=\"en\"><head><title>Hi</title></head><body><p>Hello</p></body></html>"
}
Expected outputjson
{
  "truncated": false,
  "diagnostics": [],
  "doctype": "html",
  "title": "Hi",
  "lang": "en",
  "checkerVersion": "26.8.23 (9b5b796)",
  "documentMode": "HTML",
  "checkerCommit": "9b5b796640803ad85a3d3a9d1cb1825acf092672",
  "includeWarnings": true,
  "valid": true
}
Tip
The checker returns valid true and an empty diagnostics list.

A fragment without a doctype is reported as invalid

Inputjson
{
  "html": "<html><p>Hi</p></html>"
}
Expected outputjson
{
  "includeWarnings": true,
  "checkerCommit": "9b5b796640803ad85a3d3a9d1cb1825acf092672",
  "truncated": false,
  "valid": false,
  "diagnostics": [
    {
      "code": "HTML_97fae2f3b03f87e1",
      "severity": "ERROR",
      "message": "Start tag seen without seeing a doctype first. Expected \"<!DOCTYPE html>\".",
      "path": "document",
      "source": "nu-html-checker",
      "location": {
        "line": 1,
        "column": 1,
        "endLine": 1,
        "endColumn": 6
      }
    },
    {
      "code": "HTML_495d1a0aad76488d",
      "severity": "WARNING",
      "message": "Consider adding a \"lang\" attribute to the \"html\" start tag to declare the language of this document.",
      "path": "document",
      "source": "nu-html-checker",
      "location": {
        "line": 1,
        "column": 1,
        "endLine": 1,
        "endColumn": 6
      }
    },
    {
      "code": "HTML_c441d85bf090bb73",
      "severity": "ERROR",
      "message": "Element \"head\" is missing a required instance of child element \"title\".",
      "path": "document",
      "source": "nu-html-checker",
      "location": {
        "line": 1,
        "column": 7,
        "endLine": 1,
        "endColumn": 9
      }
    }
  ],
  "checkerVersion": "26.8.23 (9b5b796)",
  "documentMode": "HTML"
}
Tip
Diagnostics stay path-free and do not include host filesystem locations.
  • Check a saved HTML5 document for syntax errors before publishing
  • Collect checker warnings on an XHTML snapshot without opening a browser

Avoid for

  • Accessibility audits
  • Live page fetching
  • XSS cleaning, which web.sanitize_html handles

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

htmlwebvalidation