dsh-feishu: Manipulating Feishu Cloud Documents and Multi-dimensional Tables with Agents in DeepSeek Harness

Introduction

When automating tasks in DeepSeek Harness (DSH), a common practice is to hand-write scripts to call Feishu Open Platform APIs, or to repeatedly paste document links and spreadsheet screenshots into conversations. Features like grouping and statistics in multi-dimensional tables (Bitables), dashboard charts, cloud document imports, and group message sending each correspond to different APIs and permissions, requiring you to handle authorization and retries yourself.

dsh-feishu, published by the maintainer 2048lr and categorized as a web-enabled tool, encapsulates capabilities such as multi-dimensional tables, documents, spreadsheets, cloud drive, knowledge bases, and messages on the Feishu / Lark tenant into tools callable by DSH. It also provides a visual settings page and an OAuth authorization flow. The following sections cover its positioning, tool capabilities, installation, and typical usage.

What is this

dsh-feishu is a Feishu / Lark integration plugin for DeepSeek Harness. Agents access real tenant resources through a set of tools prefixed with feishu_ (the prefix can be renamed in settings). The plugin also provides a floating panel on the browser side to view operation logs and complete authorization on the page.

Newly created content defaults to the authorized user’s own cloud drive: the tools call the Open Platform as the user. If user authorization has not been saved yet, it falls back to the app identity and includes a warning in the result, rather than silently writing files to a space invisible to the user.

Core Features

The tools listed in the README are as follows (the name prefix defaults to feishu_):

Tool Function
feishu_bitable Create a multi-dimensional table (Bitable) app, its data tables, and fields in a single call; list tables and fields; batch insert, search, update, and delete records.
feishu_dashboard Create dashboards and chart blocks (approx. 15 types including bar charts, line charts, pie charts, leaderboards, metric cards, NPS, etc.) within a Bitable, adjust their positions, and read chart calculation results.
feishu_query Perform group-by aggregation queries on tables (group by, sum / avg / min / max / count / distinct_count, filtering, sorting, top-N). Aggregation is performed server-side.
feishu_doc Create documents; append Markdown (converted to native blocks) or raw blocks; read plain text; import local Markdown / Word / Excel / PowerPoint / PDF as new cloud documents.
feishu_sheet Create spreadsheets; add and delete worksheets; read, write, and append ranges.
feishu_drive Browse folders; create folders; upload and download; move and delete; read metadata.
feishu_wiki List knowledge base spaces and nodes; resolve wiki tokens to corresponding documents; create and move nodes.
feishu_message Send text, interactive cards, rich text posts, files, and images; reply in threads; send via custom bot webhooks.
feishu_auth Diagnose authorization, generate authorization URLs, complete exchange with a manual code, refresh, and logout.
feishu_api Call any Feishu Open Platform path documented, sharing the same set of authentication, retries, and error mapping.

The settings page (Settings → Feishu) allows editing app credentials, default storage location and identity, feature toggles, authorization scopes and redirect URLs, and advanced options (endpoint overrides and pagination limits, etc.), eliminating the need to manually edit YAML. Upon saving, only the entry for this plugin in the current profile’s cordis.patch.yml is written, allowing Harness to hot-reload; the App Secret is not written to this file but goes into the credential store.

Installation and Enablement

Choose one of the following installation methods; do not use both simultaneously. Both methods create an entry with the id feishu in the loader. Duplicate definitions will trigger a duplicate loader entry id error.

dsh plugin add github:2048lr/dsh-feishu

This command adds dsh-feishu to dsh.profile.bundles and merges the cordis.patch.yml from the package when the profile starts.

Manual Installation (No CLI)

Execute the following in the repository root directory (the original source uses a PowerShell script):

pwsh -File scripts/install.ps1

The script copies the package to the profile’s node_modules and inserts a plugin line into cordis.patch.yml. After completion, you must restart DeepSeek Harness (the host-side Node module cache is in-process, so a simple reload is insufficient).

Regardless of the method, it is recommended to fill in the configuration in Settings → Feishu after the first restart, rather than manually editing the YAML long-term.

Feishu App Preparation

  1. Create an Enterprise Self-Built App on the Feishu Open Platform (or Lark). Note down the App ID and App Secret under “Credentials & Basic Info”.
  2. Add the plugin callback under “Security Settings → Redirect URLs” (the port depends on the actual DSH listening port; the plugin reads it from the host and provides the full URI in the status of feishu_auth), for example:
   http://127.0.0.1:19387/api/feishu/oauth/callback
  1. Add the required scopes under “Permission Management” and publish a version (permissions in unpublished versions do not take effect). offline_access is required; otherwise, refresh tokens cannot be obtained, requiring frequent re-authorization. Other common scopes include bitable:app, docx:document, drive:drive, sheets:spreadsheet, wiki:wiki, im:message, im:resource, contact:user.base:readonly, etc. See the permission table in the README for the mapping with the tools above.

  2. Enter the App ID in the DSH settings page. Provide the App Secret via a credential reference (default name FEISHU_APP_SECRET) or environment variable. Select the brand feishu or lark.

Authorization

Click “Authorize Feishu” on the settings page, or ask the agent to call feishu_auth with the action authorize_url. After the browser completes the callback, subsequent calls will execute as that user. For remote/headless environments without a local browser: open the authorization URL in any environment, then pass the code from the callback to feishu_auth with the action complete.

Typical Usage

Once configuration and authorization are complete, you can describe tasks directly in the conversation, and the model will select the corresponding tools. Examples:

  • Use feishu_bitable to create a table, write fields, and batch write records, then use feishu_query for group summaries.
  • Use feishu_dashboard to add chart blocks and read metrics within the same Bitable app.
  • Use feishu_doc to import documents from local Markdown or append Markdown content.
  • Use feishu_message to send cards or files; use feishu_api to call Open Platform paths when unwrapped interfaces are needed.

Configuration items not listed in the table (such as defaultFolderToken, defaultIdentity, toolPrefix, enableTools, etc.) can be found in the Configuration section of the settings page or the README; all fields except appId have default values.

Applicable Scenarios and Notes

This is suitable for developers who are already running agents in DSH and wish to treat the Feishu tenant as a “writable workspace.” Tasks such as project ledgers, reports, document archiving, knowledge base organization, and notification dispatching can be completed by the agent calling tools, eliminating the need to maintain a separate set of Feishu scripts.

Please note before use:

  • The plugin runs with the permissions of the current DSH process. Before installation, you should read the GitHub repository source code and the MIT license (package.json lists version 0.1.0, Node >= 20).
  • The community directory SkillHub plugin page is an independent ecosystem site and has no official affiliation with DeepSeek / High-Flyer. Star counts and versions should be based on real-time information from the repository and directory pages.
  • Do not write the App Secret in plaintext into cordis.patch.yml; prioritize using the Harness credential store.
  • Do not mix bundle installation with install.ps1 to avoid loader id conflicts.

Conclusion

dsh-feishu consolidates Feishu Bitable, documents, spreadsheets, cloud drive, knowledge base, messaging, and general API calls into the DSH tool layer, reducing integration costs with a settings page and OAuth. For further details on permission tables and advanced configuration, refer to the repository README (including the Chinese README.zh.md).

  • Directory Page: https://www.skillhub.cn/plugins/2048lr/dsh-feishu
  • GitHub: https://github.com/2048lr/dsh-feishu
羽毛球分组比赛记分
小程序二维码

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

Xiaoye