Preface¶
In DeepSeek Harness (DSH), when writing code or debugging agents, taking screenshots and generating QR codes often interrupt the current workflow: you have to switch to system screenshots or open web-based QR code tools, and sometimes you even have to upload images to third-party services. The Mading Toolbox (npm package name dsh-mading-toolbox, repo liulxiang/madingbox) collects these high-frequency operations into the DSH left sidebar and registers them as Host Agent tools; screenshots, QR code generation, QR code recognition, image compression, and JSON organization are all completed locally on macOS. The plugin readme states that it does not initiate external network requests. The following introduces its positioning, capabilities, installation methods, and typical usage. The community directory is at skillhub.cn/plugins/liulxiang/madingbox; the directory site is a community ecosystem site and has no official affiliation with DeepSeek / HF.
What is it¶
The Mading Toolbox is developed by maintainer liulxiang, categorized as a DSH client plugin (dsh.client.platform is web). The current version in the documentation is 0.3.0, license MIT. It is aimed at users in DSH who need to capture screen content, generate or recognize QR codes, reduce image size, and validate/format JSON; the second-phase readme summarizes it as “Screenshot, generate code, recognize code, compress image, organize JSON — all without leaving the local machine.”
Regarding the platform, the readme specifies macOS: screenshots rely on screencapture and the system capture window, QR code recognition uses macOS Vision, and image compression calls the system sips. QR code encoding and JSON processing are pure JS, but the whole package is designed for macOS usage scenarios, and the documentation states that full capabilities for Windows / Linux are not currently supported.
Core Functions¶
The following is organized according to the capability table in the readme; the output defaults to ~/Downloads/码叮工具箱/ and the root directory can be modified via the environment variable MADING_TOOLBOX_DIR.
Screenshot¶
- Full Screen Screenshot: PNG for the main monitor, supports delay and mouse pointer toggle.
- Region Screenshot: PNG for the selected area, invokes the system capture window, cancel by pressing Esc.
- Window Screenshot: PNG for a single window, automatically removes window shadows.
In the sidebar “Screenshot” page, select a mode and click “Start Screenshot”; history is in the output directory, supporting thumbnails, full-size images, copy to clipboard, and show in Finder.
QR Code¶
- Generation: Simultaneously saves PNG and SVG; content types include text, URL, Wi-Fi, email; error correction levels L/M/Q/H.
- Style: Module (square / rounded / dot / diamond), finder pattern (square / rounded / circle), size 128-2048px, quiet zone 0-8, foreground/background colors; real-time preview is available before saving.
- Recognition: Uses macOS Vision to recognize local images, readme states no internet connection is used; results can be copied or filled back into the input box.
Image Compression¶
Outputs smaller PNG/JPEG via system sips; quality 1-100, longest edge can be scaled. GIFs are rejected because they become single-frame, avoiding silent destruction of animations.
JSON¶
Supports formatting, minifying, and validation; indentation optional 2/4 spaces or Tab; syntax errors indicate line and column position.
Agent Tools¶
The plugin registers five tools with the Host, sharing the same output directory as the sidebar:
| Tool | Function |
|---|---|
mading_screenshot |
Full screen / region / window screenshot |
mading_qr |
Generate QR code (PNG + SVG, including module / finder pattern styles) |
mading_qr_decode |
Recognize QR codes in local images |
mading_compress |
Compress local images using sips |
mading_json |
Validate / format / minify JSON |
You can use natural language for the Agent, for example, “Help me take a full screen screenshot” or “Give me this JSON formatted” (see readme example table for expression styles).
Installation and Enabling¶
Recommended installation from npm. The command in the documentation is:
dsh plugin --profile web add dsh-mading-toolbox
You can also search for dsh-mading-toolbox in DSH “Plugins → Discover” (you need to configure the index source containing this package first). After installation, you must completely exit and restart DSH for the Host and Web sides to load the new plugin.
During development and debugging, the readme also provides methods like pointing plugin_manager.install_bundle to the repository root directory from source code, or manually ln -s to node_modules/dsh-mading-toolbox in the profile and declaring the bundle in dsh.profile.bundles in package.json; the package name must be dsh-mading-toolbox.
Typical Usage¶
Sidebar Four Pages¶
After restarting, click the “Mading Toolbox” icon in the left sidebar; the four tabs correspond to screenshot, QR code, image compression, and JSON. On the QR code page, fill in the content on the left and preview in real-time on the right, click “Save PNG + SVG” to write to the output directory; on the compression page, select an image or paste an absolute path, then set the format and quality to compress.
Agent Invocation¶
Consistent with manual operations, generated files will appear in the same directory tree, for example:
Mading Toolbox/
├── 截图/
├── 二维码/
└── 压缩/
The recognition output example in the readme:
在 真机验证.png 里识别到 1 个二维码:
#1
码叮工具箱 · 真机验证 https://example.com/mading
macOS Permissions¶
When taking the first screenshot, the system will ask for Screen Recording permission; you need to authorize DSH and then restart; unauthorized may lead to failure or black images. Region / Window mode will pop up the native system capture interface, which is normal behavior.
Applicable Scenarios and Notes¶
Suitable for: Developers or daily users using DSH on macOS who want to reduce switching apps to take screenshots and QR codes, and want outputs to stay in the local Downloads directory.
Security and Design (according to readme): HTTP routing goes through connection.requestRejection; preview and download paths are limited to the plugin output directory; recognition is read-only for local images; readme states zero external network requests. JSON request body limit is 1MB; images to recognize 20MB, images to compress 80MB.
Pre-installation Advice: The plugin runs with the current DSH process permissions. Before installing, you should check the GitHub source code and the MIT license yourself; the built-in qrcode@1.5.4 is also MIT.
Not Included Yet (Second phase scope description): Screenshot annotations, OCR, batch processing, WebP output, cloud sync, QR code logo embedding, etc.
Conclusion¶
The Mading Toolbox puts screenshots, QR codes, image compression, and JSON into the DSH sidebar and Agent toolchain, with default output in ~/Downloads/码叮工具箱/, suitable for performing the above operations locally on macOS and reducing dependency on external web tools.
- Community Directory: https://www.skillhub.cn/plugins/liulxiang/madingbox
- Source Code and Description: https://github.com/liulxiang/madingbox