maket_preview
View documents outside the agent by opening the live preview URL in a browser or rendering a single page to PNG at true mm size.
Instructions
When to use: view documents outside the agent. open flips the live preview URL into the user's browser; snapshot rasterises a single page to PNG at its true mm size.
open — launch the live preview URL (localhost) in the default browser. No params. snapshot — render a page via headless Chromium. Returns the PNG inline (binary) and as a file path on disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document name. Required for snapshot. | |
| page | No | 1-based page number. Required for snapshot. | |
| path | No | For snapshot: output PNG path. Defaults to EXPORTS_DIR/<doc>.png. | |
| action | Yes | Operation to run. See the tool description for the action table. |