dsh-tencent-docs-toolbox: Log In to Tencent Docs in DSH and Expose 48 Agent Tools

Introduction

In DSH, when performing document conversion, AI capabilities, or audio/video transcription, a common practice is to write separate scripts to call APIs or to leave browser login and quota checking as manual steps. Tencent Docs’ capabilities are primarily web-based, requiring account state, files, and task results to be maintained within the same session.

The following introduces the community plugin dsh-tencent-docs-toolbox (maintainer: vb2250158, category: Internet Tools). It provides a “Tencent Docs Toolbox” page in the DSH sidebar and automatically handles login and session saving. The Agent can invoke 48 tools to process PDFs, Office documents, images, audio/video, and AI documents while querying the current account quota. Both the web interface and the Agent share the same login, files, and task records.

What is this

Plugin positioning: Integrating the Tencent Docs toolbox into DeepSeek Harness (DSH), supporting automatic account login, persistent sessions, and real-time quota reading.

The DSH ecosystem adopts an “everything is a plugin” approach. Directories like SkillHub are community sites and have no official affiliation with DeepSeek or Fantuan.

Core Features

After opening the Tencent Docs Toolbox in the DSH sidebar, you can perform categorization, search, upload, parameter filling, progress viewing, and result downloading via the web page. Supported processing formats include PDFs, Office documents, images, audio/video, and AI documents (refer to the README for details).

Agent Tools (48)

There are a total of 48 tools available to the Agent:

  • 5 Management Tools: tencent_docs_status, tencent_docs_catalog, tencent_docs_limits, tencent_docs_upload, tencent_docs_job
  • 43 Operation Tools: Named in the form tencent_docs_<tool-id>

The artifact ID returned from an upload can be used as input for subsequent tasks. Tools return persistent task IDs: completed indicates that the result has been retrieved; user_action_required indicates that the user must enter the native editor, authorize with a service provider, or complete a signing process. If a response is lost, you can verify it using the original requestId and task ID before proceeding.

Intelligent translation, resume beautification, image-to-resume conversion, etc., support continuation in the native editor. Additionally, 7 third-party services (resume templates, resume analysis, ID photos, Cailiao QR codes, Magic Erase, background removal, e-signatures, etc.) provide service provider information, authorization status, and native entry points. See the upstream Tool List for detailed descriptions of each item.

Login and Session

On first use, the plugin checks for a saved session. If login is required, it automatically opens Chrome on the local machine to complete the Tencent Docs login using QQ or WeChat. After verifying the quota, the session is saved, the login window is closed, and the waiting tool calls are resumed.

By default, it reuses the saved login from a standalone toolbox in read-only mode (the directory is specified by the environment variable TDOCS_PROXY_STATE_DIR; the default on Windows is %LOCALAPPDATA%/tencent-docs-web-proxy). For new logins, it uses a standalone Chrome configuration within the plugin’s runtime directory. On Windows, sessions are saved encrypted using the current user’s DPAPI.

Quota Query

The toolbox reads the current account’s document AI points, Buddy One points, and audio/video transcription duration. Voice dictation and audio-to-text conversion share benefit ID 25, and the duration balance is read in seconds. When the upstream returns unlimit=true, it indicates an unlimited amount. Local processing separately marks local operation quotas and file limits.

Installation and Setup

Environment Requirements

  1. Node.js 24.15+ (consistent with engines in package.json)
  2. Google Chrome installed
  3. DSH instance with Web Client enabled

The Chrome login window opens on the computer where the DSH service is running. Ensure the machine has a graphical login capability during deployment.

Installation Command

Replace <profile> with your active DSH profile, and replace <commit> with the full Git commit SHA of this repository (install via fixed version, do not omit the commit).

dsh plugin --profile <profile> add "github:vb2250158/dsh-tencent-docs-toolbox#<commit>"

After completing the application or restarting as prompted by DSH, open the “Tencent Docs Toolbox” in the sidebar. You can also check the login status and access the toolbox from the settings page.

DSH Configuration Options

Configure the tencent-docs-toolbox plugin line in DSH; the embedded page is accessed via the DSH owner connection.

Configuration Default Value Purpose
dataDirectory $DSH_HOME/state/tencent-docs-toolbox Private sessions, standalone Chrome configuration, file and task directories. DSH_HOME defaults to ~/.dsh; custom directories are recommended to be placed outside the source repository.
reuseStandaloneLogin true Allows reading the saved login from the local standalone toolbox. Setting this to false will only use the plugin’s own session and login window.

Typical Usage

Web Side

  1. Complete the initial login (see the previous section).
  2. Select a tool category in the sidebar toolbox, upload a file, and fill in the parameters.
  3. Check the progress and download the results upon completion. If the status is user_action_required, follow the prompts to enter the native Tencent Docs interface to complete editing, authorization, or signing.

Agent Side

  1. Call tencent_docs_catalog or the tool ID listed in the documentation to see available operations.
  2. Use tencent_docs_upload to upload the file and note the returned artifact ID.
  3. Call the corresponding tencent_docs_<tool-id> to submit the task, and use tencent_docs_job or the returned task ID to poll until completed or user_action_required.
  4. When cost control or queuing is needed, you can call tencent_docs_limits first to check the current points and transcription duration.

Concurrent calls share a single login window. Cancelling the wait for a single tool only ends the wait for that specific call and does not affect other calls.

Applicable Scenarios and Considerations

Who is this for

  • Developers who have already built Agents in DSH and want to directly call Tencent Docs conversion, AI, and third-party toolchains.
  • Teams that want to handle login, quota checking, and task tracking within the same DSH process, reducing the need for manual cookie copying or maintaining a separate proxy service.

Security and Operations

  • The plugin runs with the current DSH process permissions and will launch Chrome on the local machine to read and write session and task data under dataDirectory. Before installation, you should review the repository source code and the MIT license to ensure compliance with internal network and data compliance requirements.
  • Uninstalling the plugin will revoke the tool, page, and route registrations, close the private backend and login window, and wait for the termination of received tasks. Historical files, sessions, and task records are still saved in the private runtime directory and must be cleaned up or backed up manually.
  • Closing the Chrome login window will end the current login wait. When the network is disconnected, the login panel provides a retry option and retains the saved login.

Conclusion

dsh-tencent-docs-toolbox consolidates the Tencent Docs toolbox, automatic login, real-time quota, and 48 Agent tools into the DSH sidebar and configuration system, making it suitable for scenarios requiring the connection of document processing capabilities to Harness Agents.

  • Directory page: https://www.skillhub.cn/plugins/vb2250158/dsh-tencent-docs-toolbox
  • Source code and README: https://github.com/vb2250158/dsh-tencent-docs-toolbox
羽毛球分组比赛记分
小程序二维码

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

Xiaoye