← capabilities

Json Validate

Validate caller-supplied JSON against Forest bounded JSON Schema subset v1 before an agent trusts or forwards structured output. Returns deterministic machine-readable violations with stable paths; performs no network request, remote $ref resolution, regex evaluation, model inference or mutation.

Forest exposes this capability as a deterministic machine-readable API for software agents. Discovery is free; execution uses the canonical paid endpoint below. The live x402 challenge is the source of truth for payment terms.

$0.001 / callPOST /json/validatex402 · Base

Typical agent tasks

This capability is intended for bounded machine decisions such as:

What Forest guarantees

Boundaries

Machine contract

The request and response schemas are published in the canonical OpenAPI document. This page shows a representative input from the same production manifest.

Input example

{ "value": { "id": 42, "status": "ready" }, "schema": { "type": "object", "required": [ "id", "status" ], "properties": { "id": { "type": "integer" }, "status": { "enum": [ "ready", "blocked" ] } }, "additionalProperties": false } }

Canonical paid endpoint

https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/json/validate

OpenAPI contract →

Related capabilities