Export a page to a file
visio_export_pageExports a Visio page to an image file. Specify the destination path and optionally the page, document, or maximum pixel size for raster formats.
Instructions
Write a page to an image file on disk.
The extension picks the format; Visio handles .png, .jpg, .gif, .bmp, .tif, .svg and .emf.
Args: path: Destination file path. Relative paths resolve against the server's working directory. page: Page name or 1-based index. Omit for the page on screen. document: File name or 1-based index. Omit for the active document. max_pixels: Longest edge for raster formats.
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": {
"path": "<path>"
},
"name": "visio_export_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| path | Yes | ||
| document | No | ||
| max_pixels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| path | Yes | ||
| bytes | Yes | ||
| format | Yes | ||
| document | Yes |