get_diagram_schema
Retrieve the JSON schema and selection guidance for any diagram type before creating a diagram, ensuring your payload matches the expected format on the first attempt.
Instructions
Get the JSON schema and selection guidance for one diagram type.
Call this before passing a spec to create_diagram for a type you have
not used yet, so the payload matches on the first attempt.
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": {
"diagram_type": "<diagram_type>"
},
"name": "get_diagram_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram_type | Yes | A type name from list_diagram_types (e.g. "sequence", "pyramid", "bar", "swimlane"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |