convert_yaml_json
Convert YAML to JSON or JSON to YAML for data format interoperability. Specify direction and input to get converted output.
Instructions
Convert between YAML and JSON formats.
Args: content: Input content string direction: Conversion direction - 'yaml_to_json' or 'json_to_yaml'
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": {
"content": "<content>"
},
"name": "convert_yaml_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| content | Yes | ||
| direction | No | yaml_to_json |