Media Look: Enabling Models to Directly View Local Files and Web Pages

Introduction

In DeepSeek Harness, models can typically only interact with the context window through text and cannot directly read local resources such as images, videos, PDFs, or Office documents. To let a model “see” such content, a common approach is to upload files to a third-party service and return the results. This introduces network dependency, privacy concerns, and additional costs.

The media look plugin lets models directly view local files and web pages: give it an image, video, audio file, PDF, Office document, folder, archive, web page, or a screenshot, and it converts the content into images and position-tagged text that the model can read directly. The positions in the results can be copied as-is, allowing the model to zoom in or search further.

What It Is

media look is a plugin for DeepSeek Harness, maintained by Miint-Sunny. It provides models with the ability to read local files and web pages, supporting images, videos, audio, PDFs, Office documents, folders, archives, web pages, and screenshots. The plugin exposes four tools within DeepSeek Harness and also provides an MCP server endpoint for other MCP clients.

Installation and Enablement

It has not yet been published to npm. Download miint-sunny-dsh-media-look-0.2.1.tgz from GitHub Releases, then add the absolute path of that file on the “Plugins” page in DeepSeek Harness. The example path below is a placeholder—replace it with your actual path:

/absolute/path/miint-sunny-dsh-media-look-0.2.1.tgz

All runtime dependencies are bundled inside the tgz, so no network access is required during installation. Once published to npm, you can add the full package name @miint-sunny/dsh-media-look on the “Plugins” page. Plugins installed by npm package name will show an update button; when using a local .tgz, uninstall the old package first, then add the absolute path of the new .tgz. Uninstallation can be done on the “Plugins” page, but the data directory ~/.media-look/ will not be automatically deleted—keep it if you need to retain settings or cache.

After installation, the media-look plugin row should display “Running.”

Four Tools

The plugin provides four tools in the session:

  • look: View directory, content, and preview. The about parameter can specify what you’re looking for; dryRun only probes size, duration, and estimated cost.
  • look_zoom: View a specific page, slide, table range, inline image, web section, or time range by position.
  • look_find: Search documents, web pages, images, or audio/video by keyword; returns pages, regions, cells, sections, or timestamps; scanned pages and images will undergo OCR.
  • look_fetch: Export local documents as Markdown, web pages as content plus screenshots, or download video/file direct links. Direct links require a saveTo value; the specified save path will not overwrite existing files.

Each result includes the type and basic info, source text, images, ready-to-copy next-step calls, and elapsed time.

Supported Content

The plugin supports multiple media types. Returned content and position syntax are as follows:

Type Returned Content Position Syntax
Image: png, jpg, webp, gif, heic, avif, svg, tiff, bmp Resized image with white background padding; long screenshots split into segments; animated images show only the first frame @x,y,w,h
Video: local file, or link from an allowed site (downloaded first) Keyframe grid (each cell labeled with timestamp) and subtitle excerpts 1:20, 1:20-1:45, optionally with @x,y,w,h
Audio Timed transcription Same as above
Web page and article Content broken into sections by heading, table of contents, and image list; screenshots when needed sec2.1, img3, @x,y,w,h
Web image Downloaded then processed as an image @x,y,w,h
Screen and window Screenshot of the main screen, a specific display, or a specific window @x,y,w,h
Folder Directory listing: type and overview for each item; subfolders listed by name and item count only item3
ZIP archive Entry listing; zooming into an entry extracts it to a private temp directory first item3
Text-based and scanned PDF Text layer, page count, outline; view text or page image per page p3, p3-5, p3@0,0,1,0.3
Word (DOCX, DOC, ODT, RTF, Pages) Read content and inline images by heading; view laid-out pages sec2.1, img1, p2
Slides (PPTX, PPT, ODP, Keynote) Titles, body text, speaker notes, and single-slide images s5, s5@0,0,1,0.5
Spreadsheets (XLSX, XLS, ODS, CSV, TSV, Numbers) Preview by sheet; search returns cells Sheet1!B3, Sheet1!A1:F20
EPUB Table of contents, chapters, and illustrations sec2, img1
Subtitles (SRT, VTT, ASS) Subtitle text and time ranges 1:20-1:45
Text (TXT, Markdown, LOG, JSON) Read content by heading or paragraph; recognizes legacy encodings like GBK sec1, sec2.1

The four values in @x,y,w,h are relative coordinates from 0 to 1, with the origin at the top-left corner of the image or page. A section exceeding 3,000 characters (doc.textChunkChars) is split into continuation parts secN#2, secN#3. Encrypted PDFs and ZIPs will prompt for a password. .tar, .7z, and .rar are not yet supported.

Video downloads are restricted to sites in the configuration; the default is Bilibili (bilibili.com, b23.tv). Downloaded videos, screenshots, and extracted ZIP entries are retained for 24 hours; frame images, transcriptions, web content, and other cached items are retained for 14 days; total cache size is capped at 2 GB.

Screen and Window

look(target="screen") captures the main display; screen:2 captures the second monitor; look(target="window") lists visible windows, and window:3 captures the third window. It uses the system built-in screencapture. Screenshots are returned to the current session’s model, cached for 24 hours, and are not sent to any external service.

macOS screen recording permission is required: enable it for the application running media look under “System Settings → Privacy & Security → Screen & System Audio Recording” (for DSH entry, that’s DeepSeek Harness; for MCP entry, it’s the app launching the MCP client, such as Terminal). After enabling, reopen that application. The “Allow viewing screen and window” toggle (look.screen.enabled) on the settings page is enabled by default.

Document and Auxiliary Recognition

PDFs, images, etc. are first viewed by the session model using page images and existing text. When you need to search text, read formulas, tables, or illustrations, you can request assistance via the assist parameter:

  • assist="ocr": Extract text. Local PaddleOCR returns line-by-line text with bounding boxes. look_find will automatically invoke this for scanned pages.
  • assist="layout": Parse formulas, tables, and positioned illustrations. Locally, the layout engine is selected in the order specified by ocr.layout.engines; by default, PaddleOCR-VL-1.6 is tried first, falling back to LightOnOCR-3 if it’s not installed or parsing fails; if neither yields local results, the cloud service is used.
  • assist="cloud": Use the cloud service only to re-parse this page, useful when local results are incorrect.

Examples:

look(target="/docs/paper.pdf")
look_zoom(target="/docs/paper.pdf", at="p3")
look_zoom(target="/docs/paper.pdf", at="p3@0,0.4,1,0.35", assist="layout")
look_find(target="/docs/paper.pdf", query="deferral")

When the current session model does not support image input, viewing a single page will automatically trigger layout parsing. A single active search can perform supplemental OCR on at most 50 pages (ocr.maxPagesPerCall); if there are remaining pages, the result will include a continuation call. Pages, Keynote, and Numbers are exported via their respective apps; the first use may require authorization under “System Settings → Privacy & Security → Automation.”

Local Model Installation

PDF text layers, web pages, images, and folders do not require additional models. The following two categories of local models need to be installed separately and are both optional.

Local Speech Transcription (speech)

Content Source Size
speech 0.0.29 Homebrew ~82 MB
MOSS INT5 (Chinese, English, etc.—default engine) Downloaded by speech on first use to ~/Library/Caches/qwen3-speech/models/ ~1.05 GB
Parakeet v3 CoreML INT8 (European languages) Same as above, model aufklarer/Parakeet-TDT-v3-CoreML-INT8-30s ~641 MB

First run brew install speech ffmpeg, then verify that asr.moss.command and asr.parakeet.command in the configuration point to speech. Downloading from video sites also requires brew install yt-dlp. Without speech, videos and audio can still have frames extracted, but transcription will fall back to the cloud.

Local OCR and Layout Parsing

Requires macOS arm64, Homebrew Python 3.13 (/opt/homebrew/bin/python3.13), and uv (/opt/homebrew/bin/uv); install them with brew install python@3.13 uv. The installation script is in the plugin directory and runs using the app’s built-in runtime—no separate Node installation needed:

cd ~/.dsh/profiles/desktop/node_modules/@miint-sunny/dsh-media-look
# Only verify the manifest and remote file info; does not download
ELECTRON_RUN_AS_NODE=1 "/Applications/DeepSeek Harness.app/Contents/MacOS/DeepSeek Harness" scripts/install-ocr.mjs --preflight
# Confirm the manifest below before downloading; add --with-lighton at the end to include LightOnOCR-3
ELECTRON_RUN_AS_NODE=1 "/Applications/DeepSeek Harness.app/Contents/MacOS/DeepSeek Harness" scripts/install-ocr.mjs --install

If a proxy is needed, prepend NODE_USE_ENV_PROXY=1 HTTPS_PROXY=<your-proxy-address> to both commands.

The default installation directory is ~/.media-look/ocr/; use --root <directory> to specify a different location. --install installs everything in the table below except the last row, downloading approximately 2.78 GB; adding --with-lighton also installs LightOnOCR-3-0.8B, totaling approximately 4.51 GB:

Content Source Size
Line recognition environment venv/: PaddleOCR 3.7.0, ONNX Runtime 1.31.1, and dependencies—67 wheels total PyPI ~141 MB
PP-OCRv6 small detection and recognition models Hugging Face, PaddlePaddle/PP-OCRv6_small_det_onnx, PP-OCRv6_small_rec_onnx ~32 MB
Korean detection and recognition models Hugging Face, PaddlePaddle/PP-OCRv5_mobile_det_onnx, korean_PP-OCRv5_mobile_rec_onnx ~18 MB
Layout parsing environment vlm-venv/: mlx-vlm 0.7.11 and dependencies—73 wheels total; shared by the PaddleOCR-VL-1.6 block recognition service and LightOnOCR-3 PyPI ~253 MB
PaddleOCR-VL-1.6 environment paddle-vl/venv/: PaddlePaddle 3.2.1, paddleocr[doc-parser] 3.7.0 (including PaddleX 3.7.2) and dependencies—100 wheels total PyPI ~271 MB
PaddleOCR-VL-1.6 and PP-DocLayoutV3 (layout parsing) Hugging Face, PaddlePaddle/PaddleOCR-VL-1.6, PaddlePaddle/PP-DocLayoutV3 ~2.06 GB
LightOnOCR-3-0.8B (layout parsing, only installed with --with-lighton) Hugging Face, lightonai/LightOnOCR-3-0.8B ~1.74 GB

All file versions and SHA-256 checksums are locked in scripts/ocr-install-lock.json. Installation aborts if checksums don’t match or if any group’s size exceeds the approved value by 20%. Installation records are written per group to manifest.json in the installation directory; records from older versions are converted in-place to the per-group format without re-downloading. Groups already present in the installation directory but not yet registered (e.g., a pre-downloaded paddle-vl/) are verified against the manifest first: model files are checked byte-by-byte against size and hash, and every package version in the environment must match the manifest. Only if everything matches is the group registered without downloading; any mismatch stops the process and leaves the group’s files untouched. Newly installed or registered groups are automatically re-verified once. After re-verification content is updated, subsequent --install runs will only re-verify already-installed groups without re-downloading. No network access is needed at runtime. Processing time depends on the device and page content.

Interpreter and model paths default to ocr/ under the data directory and can be changed via ocr.local.python, ocr.local.modelsDir, ocr.layout.lighton.python, ocr.layout.lighton.modelsDir, and the python, serverPython, modelDir, layoutModelDir keys under ocr.layout.paddle-vl. If the installation directory is not ocr/ under the data directory, point these paths there. Legacy configurations with python and modelsDir written directly under ocr.layout will still be read. When MEDIA_LOOK_HOME is set, new installations can use --root "$MEDIA_LOOK_HOME/ocr" to install into the data directory, avoiding path changes. For installations done with a previous version of the script into ~/.media-look/ocr/, running --install again without --root will keep existing groups in place without re-downloading, and these paths will continue to point there.

Configuration

DSH entry: click media look on the Plugins page. It has three tabs: “Local & Cloud,” “Quotas,” and “Web.” Settings are stored in config.json in the data directory and shared by both entry points. Each value is validated before saving; if any value is invalid, none are written. The old file is kept as config.json.prev and can be restored from the UI if the config file is corrupted. The DSH entry reloads with the new configuration when there are no active calls or background tasks; the MCP entry reads the new config on its next launch.

The data directory defaults to ~/.media-look; the environment variable MEDIA_LOOK_HOME can override it. It contains: config.json, cache/ (cache and cost ledger), private/ (cookie copies and key files, never treated as media), sources.jsonl (list of downloaded video sources), ocr/ (local OCR).

Common settings:

  • Run location (router.runLocation, ocr.runLocation, ocr.layout.runLocation), governing speech transcription, text recognition, and layout parsing respectively: Automatic; “Local only” never initiates cloud requests; “Cloud first” prefers cloud when online, falling back to local when offline, missing a key, or exceeding the daily limit.
  • Local-only processing (offlineOnly): Off; when enabled, all cloud requests (transcription, text recognition, web archiving) are rejected, taking priority over the run location setting.
  • Key source (dsh.keySource): DSH “Models” page; only affects the DSH entry: models uses the API key and endpoint from the DSH “Models” page; file uses a key file, shared with media look in Claude Code and Codex.
  • Preferred layout engine (ocr.layout.engines): PaddleOCR-VL-1.6; only shown when both local layout engines are installed; the selected engine is tried first, falling back to the alternative engine if not installed or parsing fails, and finally to the cloud.

Use Cases and Notes

media look is suited for scenarios where models need to directly read local files and web pages, such as quickly browsing documents, locating table regions, searching for key dialogue in long videos, batch-processing PDF files, or capturing screen content for model comprehension.

Note: This plugin currently supports macOS only, verified on Apple Silicon. Windows is not yet supported; Intel Macs do not support local layout parsing (requires Apple Silicon), and other features are unverified. DeepSeek Harness desktop requires >=0.2.2-rc.2 <0.3.0-0; the plugin uses the app’s built-in runtime. The MCP entry requires Node.js 22.19 or later. Audio/video processing requires ffmpeg and ffprobe; local transcription optionally uses speech; video site downloads require yt-dlp.

The plugin runs with the current DSH process’s permissions. Review the source code and license before installation.

Summary

media look enables models to directly view local files and web pages, with position-based markers supporting fine-grained localization and follow-up operations. It provides practical capabilities for models in DeepSeek Harness to read documents, find content, and export results. For more details, refer to the plugin directory and the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye