← All procedures
yaml.stringify
Write a JSON value as YAML text
MCPCLI- Package
- @procedures/json · README
- Path
["yaml","stringify"]- CLI
mark yaml stringify --value <any>- MCP tool
yaml.stringify on the dev-tools server- As data
{"$proc":["yaml","stringify"],"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","stringify"], { value: "<value>" });
console.log(JSON.stringify(result));From the command line
$ mark yaml stringify --value <any>
As data, in a program
{ "$proc": ["yaml", "stringify"], "input": { "value": "<value>" } }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"value": {
"description": "The JSON value to write"
},
"indent": {
"description": "The spaces of one level of indentation (default: 2)",
"type": "integer",
"minimum": 1,
"maximum": 8
},
"lineWidth": {
"description": "The longest line before a fold. 0: no fold (default: 80)",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"sortKeys": {
"description": "True: the keys of each map in alphabetical order",
"type": "boolean"
}
},
"required": [
"value"
]
},
"output": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The YAML text"
}
},
"required": [
"text"
],
"additionalProperties": false
}
}