Graph Visualize
graph_visualizeRender an interactive HTML citation network of selected papers, colored by year and sized by citations, with search, filters, and hover details; open the saved file in a browser.
Instructions
Generate an interactive HTML visualization of the citation network.
TRIGGER when the user asks to 可视化/画出引文网络图, or wants a visual map of how collected papers cite each other.
Renders the selected works as an interactive graph (vis.js) saved to
~/.AI-CACHE/openalex/graphs/ — open the returned path in a browser.
Visual encoding:
color = publication year (light = older, dark = newer)
label = first-author surname + year on prominent/hovered nodes
size = cited-by count (robust log-scaled)
edge brightness = local citation-structure strength
short force-directed settling animation, then physics auto-freezes
click for amber highlight; hover syncs the right detail panel
in-page filters: search box (title/author/ID), year range, and community dropdown dim non-matching nodes and hide their edges
work_ids 必填:同 graph_analyze。建议 30~120 篇。超过 120 篇时,
可视化会按被引量、PageRank、集合内被引用次数和奠基性年份自动截取重要论文;
完整集合分析仍可用 graph_analyze。
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": {
"work_ids": "<work_ids>"
},
"name": "graph_visualize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| work_ids | Yes | Comma-separated OpenAlex work IDs (required). | |
| output_dir | No | Optional output directory, must be empty (default ``~/.AI-CACHE/openalex/graphs/``) or a subdirectory beneath it; other locations are rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |