← All procedures
yaml.parse
Parse YAML text into a JSON value
MCPCLI- Package
- @procedures/json · README
- Path
["yaml","parse"]- CLI
mark yaml parse --text <string>- MCP tool
yaml.parse on the dev-tools server- As data
{"$proc":["yaml","parse"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/json/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["yaml","parse"], { text: "<text>" });
console.log(JSON.stringify(result));From the command line
$ mark yaml parse --text <string>
As data, in a program
{ "$proc": ["yaml", "parse"], "input": { "text": "<text>" } }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The YAML text"
},
"all": {
"description": "True: the text can have more than one document, and value is the list of documents",
"type": "boolean"
}
},
"required": [
"text"
]
},
"output": {
"type": "object",
"properties": {
"value": {
"description": "The JSON value of the text"
}
},
"required": [
"value"
],
"additionalProperties": false
}
}