Export N2
export_n2Generate a standalone N2 diagram as an HTML file in the problem directory without opening a browser, so OpenMDAO model structure can be visualized from stored problems.
Instructions
Write a standalone N2 diagram (HTML) into the problem directory without opening a browser.
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": {
"problem_id": "<problem_id>"
},
"name": "export_n2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| outfile | No | n2.html | |
| problem_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| error | No | ||
| size_bytes | No |