Introduction¶
When publishing content in DSH, the common approach is to have the agent “open the Creator Center, click upload, fill in the title” — each step requires interacting with the real browser and page DOM. Platform redesigns, file selection dialogs blocking in other processes, and inconsistent form fields and visibility options across sites make it easy to end up with a situation that “looks successful but the file was never actually submitted.”
The following introduces the workflow plugin dsh-douyin-publish by maintainer 7gzgn (GitHub: 7gzgn/dsh-douyin-publish). It walks a local video through inspection, optional audio mixing, opening the submission page, handing the file to the page’s own upload control, filling in the title, copy, topics, and visibility (Douyin can also set a cover frame), and by default stops just before the submit button; it only actually posts when you explicitly request it.
What Is This¶
dsh-douyin-publish (package name dsh-douyin-publish, current README / package version 0.6.4) targets DeepSeek Harness: within an already-logged-in Creator Center browser session, it takes a local video all the way to the “form filled, publish not clicked” state on the submission page.
- Maintainer: 7gzgn
- Category: Workflow (community directory SkillHub plugin page)
- License: MIT
Douyin and Bilibili have been verified on real machines; submitting to an unverified platform (e.g., platform="xiaohongshu") will be explicitly rejected (platform-unsupported), without falling back to hard-clicking using another site’s selectors.
Core Features¶
Conservative Defaults¶
Publishing is irreversible and externally visible, so the plugin is deliberately conservative by default:
| Parameter | Default | To change, must be explicitly passed |
|---|---|---|
visibility |
private (visible only to yourself) |
public / friends (returns visibility-unsupported if the platform doesn’t support it) |
mode |
draft (does not click submit) |
mode: 'publish' |
To preview the flow without touching the page, use dryRun: true.
From Local File to Page Upload¶
By default it does not use the system “open file” dialog, but instead injects:
- Locally starts a read-only, single-file, token-protected mini service on a random port on
127.0.0.1; - The page
fetches it, constructs aFileviaDataTransfer, stuffs it intoinput[type=file], and dispatches events; - Subsequent uploading goes through the platform’s own logic — no popups, no blocking.
Only when the file exceeds maxInjectBytes (default 512MB) or injection is blocked by CSP/CORS does it fall back to the system dialog (this fallback is noted in the README as Windows only); on fallback it reads back to verify, and if it cannot read back, the attempt is judged a failure.
The Bilibili submission page has multiple input[type=file] elements, and the one that actually drives upload may be a hidden control; the plugin tries them in DOM order, combined with whether the edit form appears, and the receipt will indicate which control it was injected into.
Forms and Platform Differences¶
| Step | Behavior summary |
|---|---|
| Check video | Size / resolution / duration / codec (ffprobe; missing does not block) |
| Optional BGM | bgmPath + ffmpeg mixing (bgmVolume default 0.35); or pickMusic: true to open the Douyin music library panel and focus the search box (musicSearch is experimental and may require manual input) |
| Layout self-check | If any key control on the upload page / edit page is missing, reports layout-changed |
| Fill form | Title is written as a whole and read back; Douyin copy and #topics go into the description, Bilibili topics go into “Tags” with Enter pressed |
| Visibility | Douyin has three levels; Bilibili uses “More settings → Visibility range” (no friends level) |
| Cover | Douyin only: coverTime defaults to the 1st second |
| Submit | Skipped when mode=draft, receipt records skipped |
Failures are returned with categories, e.g., no-browser, upload-page-timeout, edit-page-timeout, layout-changed, handover, bgm, etc.
Dependencies and Boundaries¶
- Requires the DSH browser plugin (
ctx.browser); errors explicitly if absent. - Optional:
ffprobe(without it, there is less metadata). - No content creation: video editing, cover images, and full copy pipelines are not included in this plugin; if a captcha or risk-control check is detected it will stop — please handle it in the browser window.
Installation and Activation¶
After it is included in the marketplace, search for dsh-douyin-publish in DSH to install. Manual installation (excerpted from the README; adjust paths for your machine):
New-Item -ItemType Junction -Path "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-douyin-publish" -Target "D:\dsh\projects\dsh-douyin-publish"
# profile 的 package.json:dependencies 加 "dsh-douyin-publish": "link:D:/dsh/projects/dsh-douyin-publish"
# 并把 "dsh-douyin-publish" 加进 dsh.profile.bundles(漏了不加载)→ 重启 DSH
Before publishing, it is recommended to do two things first: ① install the browser plugin; ② log into the corresponding platform’s Creator Center in the browser (login state lives in the browser profile and can be reused across restarts).
The plugin runs with the permissions of the current DSH process; before installing, please review the repository source code and MIT license yourself to confirm it meets your environment and security requirements. Runtime requires Node >=18 (see package.json).
Typical Usage¶
Command form (excerpted from the README):
douyin_upload videoPath=D:\videos\a.mp4 [platform=douyin|bilibili] title="标题" \
[description="文案"] [topics="猫,狗"] [coverTime=1] [visibility=private] [mode=draft|publish] [dryRun]
BGM-related examples:
douyin_upload({ ..., pickMusic: true })
douyin_upload({ ..., pickMusic: true, musicSearch: "轻快" })
Suggested flow: first run with dryRun: true to take a look → run once for real (by default stops before submit) → verify in the browser → after confirming, then use mode: 'publish'.
Applicable Scenarios and Notes¶
Suitable for: creators or integration developers who already have a browser session connected in DSH, need to automate a fixed workflow (upload + form filling + visibility), and want posting to remain non-public by default.
Notes:
- Selectors are bound to real-machine page layouts (README records Douyin 2026-10-16, Bilibili 2026-10-17, etc.); after a platform redesign the plugin needs to be updated in sync.
- Injection reads the file into the browser rendering process, so there is a size cap.
- Douyin topics are autocomplete-style; after auto-filling, the read-back is authoritative; Bilibili tags have a 20-character limit reminder.
- The community directory SkillHub is an independent site with no official affiliation with DeepSeek / High-Flyer.
The repository provides a self-test: node test/smoke.mjs (README states 165 items, including fake browser and loopback service assertions).
Conclusion¶
The value of dsh-douyin-publish is that it runs through the entire chain “open page → hand over file → fill form → set visibility”, and uses draft + private to keep the power to publish in your hands. For more information, see the SkillHub directory page and the GitHub repository.