Diagram a configuration file
config_diagramDraw the architecture of a configuration file as Mermaid flowchart source, using the technology-specific model: Compose services, ports, volumes, networks and depends_on; Kubernetes Ingress → Service → workload → ConfigMap/Secret; CI jobs, stages and needs; OpenAPI endpoints and schemas; Ansible plays, hosts, tasks and handlers. Use it when the user wants to see or explain how the pieces connect. For generic YAML use visualize_yaml instead.
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": "config_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tech | No | Force the technology instead of auto-detecting it | |
| detail | No | full: ports and mounts as nodes; compact: folded into labels. Default: auto | |
| content | Yes | The full text of the configuration file (YAML or JSON) | |
| filename | No | File name or path, e.g. "docker-compose.prod.yml" or ".github/workflows/ci.yml". Improves detection; pass it whenever you know it. |