export_graph_sized
Export a graph to an image with precise pixel dimensions. Choose width, height, and format (PNG, JPG, TIF, BMP) to control output size.
Instructions
Export a graph to an image at a chosen pixel size (expGraph).
Unlike export_graph (clipboard, page-size only), this controls the output pixel width/height directly.
Args: graph_name: Graph to export file_path: Output path (Windows or WSL style) width: Image width in pixels (default 1200) height: Image height in pixels (0 = keep aspect ratio) format: png, jpg, tif, or bmp
Returns: Path and pixel/byte size of the exported file
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": {
"graph_name": "<graph_name>",
"file_path": "<file_path>"
},
"name": "export_graph_sized"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | Yes | ||
| file_path | Yes | ||
| width | No | ||
| height | No | ||
| format | No | png |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |