preview
Renders local files or inline text as native MCP images for AI agents, converting documents, PDFs, office files, and video frames into viewable pages for inspection.
Instructions
Preview a local file or inline text as native MCP images.
Args: path: Absolute local path or path relative to root. Supply path or text. text: Inline text to render. Use a path for large text already on disk. kind: auto, image, document (PDF, SVG, XPS, ebook), office, text, or video. page: First page or animated image frame, starting at 1. count: Consecutive pages or frames (1-4, default 1). For video, sample 1-12 frames (default 6) into one annotated filmstrip. max_side: Maximum image dimension in pixels, 640-2048. Keep this the same when using next_page to resume a text preview. start_seconds: Video interval start, default 0. end_seconds: Video interval end, default video duration. root: Base directory for relative paths, default ICN workspace root.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | auto | |
| page | No | ||
| path | No | ||
| root | No | ||
| text | No | ||
| count | No | ||
| max_side | No | ||
| end_seconds | No | ||
| start_seconds | No |