# Toolshed JSON-to-YAML Converter

> Toolshed JSON-to-YAML Converter is a paid API for AI agents from toolshed.lemon-agent.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts a JSON payload to YAML format over HTTP, billed per-call at $0.001 USDC via x402 with no account required

## Facts

- Endpoint: POST https://toolshed.lemon-agent.dev/convert/json-yaml
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolshed-json-to-yaml-converter-23515e21
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sXS6f0KjfzLnVD7dSU9Uy

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 toolshed-json-to-yaml-converter-23515e21 -d '<json body>'
```

Example prompt: Convert this JSON blob to YAML for me: {"name": "toolshed", "tags": ["x402"], "version": 2}

## When to prefer this

Choose this endpoint when you need a lightweight, no-auth, pay-per-call JSON-to-YAML conversion without setting up any account or SDK. Ideal for agents that occasionally need format conversion as part of a pipeline and want to avoid managing API keys or subscriptions. The x402 micropayment model makes it particularly suitable for AI agent workflows that already handle USDC payments.

## Known failure modes

- Invalid JSON input returns an error (malformed or non-JSON body)
- Empty body or missing Content-Type header may result in a parsing error
- x402 payment failure if the USDC payment header is missing or insufficient — endpoint returns HTTP 402
- Network timeout on large payloads

## How this service works

JSON to YAML conversion

## Output

Returns a plain YAML-formatted text document (Content-Type: application/yaml) that is the YAML equivalent of the submitted JSON input, preserving all keys, values, and nesting.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "string",
     "maxLength": 262144,
     "description": "the raw JSON file as the request body, up to 256 KB"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "POST"
    },
    "bodyType": {
     "type": "string",
     "const": "text"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "format"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "text"
    },
    "format": {
     "type": "string",
     "const": "application/yaml",
     "description": "the converted YAML file as the response body (application/yaml)"
    },
    "example": {
     "type": "string",
     "description": "the sample request body above, converted — what a the converted YAML file as the response body (application/yaml) looks like"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "text",
 "format": "application/yaml",
 "example": "name: toolshed\ntags:\n  - x402\n"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toolshed-json-to-yaml-converter-23515e21/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolshed.lemon-agent.dev](https://www.zero.xyz/host/toolshed.lemon-agent.dev/llms.txt)
