JSON to YAML converter
hopi_json_yaml_converterConvert data between JSON and YAML in both directions. JSON to YAML parses with JSON.parse and serialises with js-yaml at two-space indent; YAML to JSON parses with js-yaml and prints with JSON.stringify. Runs on Hopi's server; nothing is stored. Source: https://hopi.co.uk/json-yaml-converter/
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": {
"text": "<text>"
},
"name": "hopi_json_yaml_converter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Direction of conversion (default json-to-yaml) | json-to-yaml |
| text | Yes | The JSON or YAML text to convert |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| output | No | ||
| summary | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) |