visualize_edge_tool
Highlights a selected road in a SUMO network file and exports the visualization as a PNG image.
Instructions
Visualize a SUMO network file with selected edges highlighted and save as PNG image.
Only use when user EXPLICITLY requests edge visualization!
- User says "show edge details", "visualize this road" → Use this
- User asks "which road is congested?" → Do NOT use, answer with text
Args:
net_file: Path to the SUMO network file (.net.xml)
road_name: Name of the road to highlight
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>",
"road_name": "<road_name>"
},
"name": "visualize_edge_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net_file | Yes | ||
| road_name | Yes | ||
| output_dir | No | output/visualizations |