visualize_graph
Render NetworkX graphs to PNG files for visualization, supporting multiple layout algorithms to save visual representations of complex network structures.
Instructions
Render graph to PNG file (saves to disk, not base64).
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": {
"graph_id": "<graph_id>"
},
"name": "visualize_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_id | Yes | ||
| layout | No | spring | |
| output_dir | No | graphs | |
| filename | No | ||
| dpi | No |