maket_preview
View Maket documents in your browser, as PNG snapshots, or inside the conversation. Open live previews, rasterize pages, or show selected pages to users.
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; show puts pages in front of the user inside the conversation.
open — launch the live preview URL (localhost) in the default browser. No params. snapshot — render a page via headless Chromium. Returns the full-size PNG as a file path on disk, the page's reading path in Maket, and the image inline (at most 1600 px on its longest side and 1 MB of base64, downscaled when larger; beyond a 2:1 ratio, the top or left part of the page). On hosts that render MCP Apps, the Maket reader also opens on that page. show — on hosts that render MCP Apps, open the Maket reader in the conversation: doc, pages ("all", 3, "3-5" or [1,4]), layout (scroll | page), start (page to open at), zoom (fit-width | actual). The user can then switch layout, jump through the page list, zoom and open the document in Maket. Other hosts get the reading path. Returns no image: use snapshot to inspect a page yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document name. Required for snapshot and show. | |
| page | No | 1-based page number. Required for snapshot. | |
| path | No | For snapshot: output PNG path. Defaults to EXPORTS_DIR/<doc>.png. | |
| zoom | No | For show: fit-width (default) or actual size. | |
| pages | No | For show: "all" (default), a page number, a range such as "3-5", or a list of page numbers. | |
| start | No | For show: the page number to open at, one of the shown pages (default: the first). | |
| action | Yes | Operation to run. See the tool description for the action table. | |
| layout | No | For show: scroll (default) shows the pages one after another; page shows one at a time with previous and next. |