visualize_net_tool
Generate a PNG image from a SUMO network file. Use when you need to see the road network layout for analysis or documentation.
Instructions
Visualize a SUMO network file and save as PNG image.
⚠️ IMPORTANT: Only use when user EXPLICITLY requests visualization!
- User says "show network map", "visualize network" → Use this
- User asks about simulation results → Do NOT use, answer with text
Args:
net_file: Path to the SUMO network file (.net.xml)
output_dir: Output directory for visualization files
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": {
"net_file": "<net_file>"
},
"name": "visualize_net_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net_file | Yes | ||
| output_dir | No | output/visualizations |