preview_file
Open files for preview on macOS using default app, Chrome, or Quick Look. Supports HTML, images, PDFs, and more.
Instructions
Open a file for preview on macOS. Supports HTML (opens in Chrome), images, PDFs, and other files. Can use default app, Chrome, or Quick Look.
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": {
"file_path": "<file_path>"
},
"name": "preview_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute or relative path to the file to preview | |
| method | No | How to open: default app, Chrome browser, or Quick Look. Default: browser for HTML, open for others |