Create a diagram
create_diagramSave a new diagram to the user's account. Returns its id and URL. May hit the free-plan limit (paywall). Requires a YAMLTools API key.
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": {
"yaml": "<yaml>"
},
"name": "create_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaml | Yes | YAML source to save | |
| title | No | Diagram title | |
| diagramType | No | Diagram type | TREE |