Preview Capability in Sandbox
x402_preview_capabilityDry-run any priced HTTP 402 capability against deterministic sandbox fixtures with live production pricing. Use this to test schemas at zero cost before funding; do not use for live data (x402_execute_capability) or multi-item quotes (x402_quote_plan). Parameters: capability_id accepts tool slug, "METHOD /path", or "/path"; omitting arguments injects curated defaults (used_example_defaults=true), whereas supplying any arguments object runs strict production validators without fallback. Behavior: no auth, zero charge, zero GPU compute; returns sandbox=true fixture, HTTP 422 invalid args, HTTP 404 unknown capability, 120 req/min/IP.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"capability_id": "<capability_id>"
},
"name": "x402_preview_capability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arguments | No | Optional JSON arguments matching the capability input_schema. Omit to auto-fill valid example defaults; pass custom fields to verify 422 validation. | |
| capability_id | Yes | Priced capability_id or route key from x402_list_capabilities to dry-run (e.g. "reality_harbor_state", "kb_search", or "POST /switchboard/chunk"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the sandbox dry-run succeeded. | |
| result | No | Deterministic sandbox response fixture matching the production contract. | |
| schema | No | Sandbox preview contract (atlas.x402.sandbox_preview.v1). | |
| charged | No | Always false because sandbox previews never debit funds. | |
| sandbox | No | Always true indicating deterministic fixture output rather than live production data. | |
| production_pricing | No | Live production pricing for this capability when executed with a funded spend key. | |
| used_example_defaults | No | True when example default arguments were auto-filled. |