# YAML validator

Check whether text is valid YAML and see where the first error is.

- Endpoint: `POST https://setget.net/v1/tools/yaml-validate` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `yaml-validate`
- Page: https://setget.net/tools/yaml-validate

## Inputs

- `text` (required, string): The YAML to check.

## Example

```json
{"input":{"text":"a: 1\nb:\n  - x"}}
```

Result:

```json
{"valid":true,"type":"object","documents":1,"error":null}
```
