export_graph
Generate a self-contained offline HTML report of a symbol's blast radius or a file's imports/dependents, returning the file path for review or PR attachment.
Instructions
Write a self-contained offline HTML view of a symbol's blast radius (mode=symbol) or a file's imports and dependents (mode=module), for a human to open or attach to a PR. Returns the file path.
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": {
"target": "<target>"
},
"name": "export_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | Output path; default: the reports dir. | |
| mode | No | symbol | module. | symbol |
| depth | No | Hops for symbol mode (1-6). | |
| source | No | Source name. Omit when only one source applies. | |
| target | Yes | Symbol (mode=symbol) or file path / fragment (mode=module). |