Introduction¶
In DeepSeek Harness, digitizing charts from papers involves two common approaches: the model directly reading the image to estimate coordinates, or manually writing scripts to parse PDFs. Once errors occur in red frame annotation, legend attribution, mean marker centers, or scale conversion, it is difficult to trace the basis in Excel. If you want the numerical values to come from the locally installed GetData Graph Digitizer, and the model needs to participate in image recognition and point-by-point review, a generic MCP alone finds it difficult to string together a recoverable chain of tasks: “Prepare Task → Refine → Review → Real Export → Fill Form”.
Below is an introduction to the community plugin dsh-redframe-digitizer (maintainer Heresy0, category: Model Inference). It bridges Harness locally with GetData on Windows, taking the mean markers of curves inside PDF red frames, passing them through a model review, and finally exporting them to TXT via GetData 2.20, which then writes them into a prescribed Excel template. The source code is MIT licensed; see the link at the end of the article for the repository.
What is this¶
dsh-redframe-digitizer is a DeepSeek Harness plugin: PDF Red Frame Curve Mean Points → Reviewed Coordinates → Actual GetData Export → Excel Template. The current package version is 0.5.0, providing 11 local MCP tools, and comes with the standard skill redframe-digitize to guide the model on when to call tools and when to stop to recognize images/review (the skill itself is not an auto-execution engine).
Starting from 0.5.0: GetData 2.20 is responsible for coordinate calculation and TXT export; Excel only reads the verified real TXT. Export failures stop immediately, with no calculation fallback. Excel writing uses Harness Python’s openpyxl, without depending on Codex or its proprietary runtime libraries. The plugin does not distribute the GetData installer, license, or crack files.
Harness Plugin Source (Configuration Reference):
github:Heresy0/dsh-redframe-digitizer
Core Features¶
Batch and Step Tools Coexist¶
Everyday tasks prioritize three batch processing MCP tools; the original 9 step tools are retained, totaling 11 tools. Batch processing does not skip the model’s visual judgment and does not automatically approve candidate points.
prepare_job (program preparation)
→ Model confirms red frame, crops image, recognizes calibration/legend/coarse points
→ submit_and_refine (submit, validate, preview, refine, generate review image)
→ Model views overlay and zoomed images, forms point-by-point review opinions
→ review_and_export (batch pre-check, actual GetData, TXT validation, Excel)
→ Model accepts layout on demand and delivers
Local error correction, checkpoints for long task reviews, and export failure retry are still available via step tools.
Coarse Positioning, Center Refinement, and Point-by-Point Review (0.4+)¶
The model is responsible for the red frame, legend, scales, series attribution, and coarse points. refine_panel_points matches marker shapes (circle, square, diamond, triangle, etc.) within bounded local windows, preserving coarse/candidate/selected and heuristic scores; when matching is weak, it keeps the original coarse point and marks it for review. view_job_image displays the overlay and zoomed images (cyan coarse points, magenta selected points, orange candidates). review_panel requires each point under review to have point_reviews and specific verification basis; generic “checked” cannot be used to bypass.
Division of Labor between Program and Model¶
- MCP copies PDF/template to a dedicated task directory, renders pages, and detects red frame candidates.
- Model views the original image, body text, caption, and legend, confirming metrics, curves, scales, and mean marker centers.
- The program generates a point overlay and GetData GDW (at this point coordinates are just calculation previews, not indicating GetData has run).
- After review passes,
export_workbookautomatically launches a standalone GetData, loading the GDW and exporting TXT via Windows menus and native file controls. - The program reads the real TXT, validates curves, points, and values, writes them to a template copy, and saves TXT, JPEG, GDW, SHA256, and operation logs.
Loading the Skill in Harness¶
The standard skill is located at the repository skills/redframe-digitize/SKILL.md. The native plugin can register redframe-digitize via ctx.inject(['skills'], ...) and ctx.skills.register(...); users can also use /redframe-digitize. When the skills service is not mounted, it does not block MCP, but it should not claim that the skill has been loaded. Complete batch processing instructions are stored in the MCP server instructions and do not depend on prompts or the success of skill loading to call tools.
Failure Recovery and Version Constraints¶
submit_and_refinewrites derived files to a separate revision directory; failures retain the old status and old review images.- Batch review requires submitting
expected_revision; version or source pixel changes will be rejected. review_and_exportdoes not submit any review if the pre-check fails. GetData export failure recordsjob_status.last_batch.phase=export_failed, allowingexport_workbookto be retried without redoing valid reviews.- The configuration
schemaVersionis still 3; 0.5 addstoolsetVersion=5andtoolCount=11; the old 9-tool backend will be explicitly rejected by the new plugin.
Environment Requirements and Limitations¶
- Interactive Windows Desktop; tested locally with GetData 2.20 Chinese interface. The user must have GetData installed and available locally, and the exe path must be explicitly provided during installation.
- Python 3.11+, preferably using the Python returned by Harness
load_workspace_dependencies; the installer supplements MCP/PDF libraries in a separate venv. - Currently, actual GetData export only validates linear X/Y axes; log axes are explicitly rejected. Broken axes, dual Y axes mixing, automatic correction of tilted charts, etc., are not supported.
- Only mean marker centers are extracted; error bar endpoints are not taken, and no observation points are generated by interpolation along line segments.
- Supports agreed-upon standard 5-column xlsx templates; complex Excel objects will be explicitly rejected.
package.jsonrequires Node >= 24.9.0, dsh >= 0.2.2-rc.3 < 0.3.0 (peer:@deepseek-ai/dsh-mcp-manager,@deepseek-ai/dsh-skill, etc.).
Installation and Activation¶
Installation relies primarily on the backend installer’s self-check, and “listing only tools” does not count as installation complete. The following steps are excerpted from the repository README; paths must be replaced with local actual values.
1. Prepare Source Code and Local Environment¶
Get the source code of this repository in a user-specified or newly created dedicated directory and record the absolute path. Confirm the Windows interactive session and that GetData is installed. Call Harness’s load_workspace_dependencies and use the returned Python to verify 3.11+ and openpyxl. Find the local GetDataW.exe / GetData.exe, preferably using the verified 2.20 Unicode program; if not found or version is unclear, ask the user.
2. Run the Installer¶
Pass the discovered absolute path to backend\setup.py (the following variables must be assigned first, do not execute as is):
# $harnessPython: python.exe returned by load_workspace_dependencies
# $setupScript: absolute path to this repo's backend\setup.py
# $getDataExe: local machine's GetDataW.exe / GetData.exe path
& $harnessPython $setupScript --getdata-exe $getDataExe
Alternatively, use:
backend\install.cmd "Harness的Python完整路径" "GetData完整exe路径"
Do not pass --skip-deps for the first installation. You must confirm the exit code is 0, INSTALLATION AND SELF-TEST PASSED appears, and in backend/selftest_report.json ok=true, desktop_export_tested=true, tools=11. Self-test without --getdata-exe cannot replace the actual GetData self-test.
3. Connect to Harness¶
- Native Plugin: Source
github:Heresy0/dsh-redframe-digitizer, usebackend/harness-plugin.patch.ymlgenerated by the installer;installDirmust point to the backend directory containingruntime.json(GitHub download copies do not automatically inherit virtual environments). - If there is no
mcpManager.register: Usebackend/harness-client.entry.json, connecting to local stdio MCP via@deepseek-ai/dsh-mcp-client. - Only one connection method for the same-named
redframe_digitizerentry can be enabled; keep the real interpreter in the config,server.pypath, and 300000 ms tool timeout.
Upgrading to 0.5: Update the plugin itself and the actual backend source, run the installer again, then reload the plugin or restart Harness and reconnect MCP; simply restarting the MCP process will not refresh the old plugin code in memory.
Typical Usage and Acceptance¶
Installation acceptance is recommended to cover three items; the first two cannot replace the third:
- Discover 11
mcp__redframe_digitizer__...tools (at leastprepare_job,submit_and_refine,review_and_export); for native plugins, check if theredframe-digitizeskill can be loaded. - Call
view_job_imageon a synthetic task to confirm the image enters the model context (tool success does not equal the model receiving the image). - Confirm that the Excel for the synthetic task has passed verification evidence of export by GetData.
Once the task is ready, users can directly provide the PDF and Excel template, for example:
Use redframe_digitizer to extract the mean marker points from these PDF red frames, complete center refinement, overlay images and point-by-point review, export via GetData, and then fill into Excel. One table per paper, name using the first three words of the title, preserving the original table and format from the template.
Applicable Scenarios and Notes¶
Suitable: Scenarios where scientific/overview chart digitization is needed in the Harness workflow, requiring model participation in image recognition and point-by-point review, and final values must come from local GetData real export (linear axes, agreed 5-column templates).
Notes:
- The plugin runs local MCP and GetData automation under the current dsh process permissions; please read the source code and MIT license before installing, and confirm that the local GetData is used compliantly.
- The project mainly conducted official interface contract testing; the README states that the maintainer has not fully accepted everything in a real Harness desktop full reinstall scenario, and the receiver’s environment needs to complete the three acceptance items above.
- The SkillHub plugin page https://www.skillhub.cn/plugins/Heresy0/dsh-redframe-digitizer is an independent ecosystem site and has no official affiliation with DeepSeek / Hypersphere.
Conclusion¶
dsh-redframe-digitizer turns “Model Review + GetData Real Export + Excel Filling” into 11 MCP tools and an optional skill, emphasizing fail-fast and traceable evidence. If your pipeline already uses Harness and you have GetData 2.20 on Windows, you can connect via the installer’s self-check path.
- Directory Page: https://www.skillhub.cn/plugins/Heresy0/dsh-redframe-digitizer
- GitHub: https://github.com/Heresy0/dsh-redframe-digitizer