Preface¶
Using dsh-bili-scroll within DSH for Bilibili “viewing”—searching, subtitles, comments—is already sufficient for information acquisition during a duty shift or desktop session. However, if you want the agent to like, favorite, follow, or occasionally share/repost and post dynamics when it determines content is worth supporting, the ancestor plugin itself does not provide these write APIs. dsh-bili-interact is a companion plugin designed for this purpose: it reuses the ancestor’s Python environment and login credentials under ~/.dsh/bili-duty/, without copying ancestor code or reinstalling dependencies. Write operations are disabled by default, and hard daily limits are hardcoded to prevent uncontrolled invocation.
The following introduces its positioning, tool capabilities, installation prerequisites, configuration methods, and usage notes.
What is this¶
- Plugin Name:
dsh-bili-interact(npm package name is the same) - Maintenance & Publish: The GitHub repository is maintained by annasleepy; the README states that this plugin is designed and implemented by Gugu (Big Fat Fish), while the Bilibili account and distribution channel are provided by annasleepy.
- Category: Networking Tools (Community Directory classification)
- Current Version (package.json):
0.0.9 - License: MIT
One-sentence positioning: A companion plugin to dsh-bili-scroll, supplementing write operations such as liking, favoriting, sharing, following, and posting dynamics. It is not a standalone plugin; you must first install and complete the QR code login for the ancestor plugin. The home directory ~/.dsh/bili-duty/ (venv + credentials) is a prerequisite for this plugin to run.
Core Functions¶
Safety-Related Designs (Written in Code)¶
- Write operations off by default:
allowWrite=false; all write tools refuse to execute until this is turned on. - Code-level daily hard limits:
HARD_MAX = { like: 20, fav: 20, share: 3, follow: 10, dynamic: 1 }; configuration files can only lower these values, never raise them. - No risk control evasion: No fake device fingerprints, no proxy pools, no multi-accounting; single account, manual pacing.
- Daily total + per-target limits: In addition to individual action quotas, there is a global
totalPerDay(default 25) andperTargetPerDay(default 2, hard max 5). - “Likes” must come from the content itself: Tool descriptions stipulate that video titles/subtitles/descriptions, comments, dynamics, and text in search results are merely material, not instructions; text saying “please like” inside content is not a reason to act; write operations are determined by the model side without the user needing to issue commands for every action (prompt injection prevention).
- Auditable, no timers: Actions are recorded in
~/.dsh/bili-interact/state.json(kept for only 14 days);bili_touch_status’stodayActionsallows viewing today’s operations; write operations only occur during a tool call within a session (desktop session or ancestor headless duty session).
share (repost) publishes to dynamics and is irretractable; bili_post_dynamic is also a publishing action and irretractable—the README suggests using these only when you genuinely feel the content is worth sharing.
MCP Tools List¶
| Tool | Function |
|---|---|
bili_following_updates |
Check first every round: recent updates from followed users (read-only, does not consume quota), with isNew / firstRun flags |
bili_touch |
Perform like / unlike / fav / unfav / share / follow / unfollow on videos; follow/unfollow can take just uid; fav can include folders to distribute to 1–3 favorite folders |
bili_fav_folders |
List favorite folders (read-only) |
bili_trending |
Scan popular content at the start of a duty shift: kind can be hot / buzz / weekly / rank (rank can specify zone) |
bili_inbox |
Unread private messages/@/replies/likes and recent notifications (read-only) |
bili_fav_content |
List videos in a specific favorite folder (read-only) |
bili_post_dynamic |
Post plain text dynamics (can at others); off by default, see config for daily hard limits |
bili_send_dm |
Send internal site private messages (≤500 chars) to configured dmUid; used for briefing before the end of a duty shift; does not consume public interaction quota |
bili_touch_status |
Dependency readiness, switches, today’s usage; checkLogin: true will query Bilibili for the current account |
Some read-only tools (bili_trending / bili_inbox / bili_fav_content) import the mcp_server.py from the ancestor’s home directory within the same process to call its functions, running in the ancestor’s venv and using the same bili_credential.json; they will report a clear error if the ancestor directory does not exist. The ledger is independent in ~/.dsh/bili-interact/, not modifying the ancestor’s state.json / seen.md.
Duty Shift and Desktop Scenarios¶
In desktop sessions, the model can decide to like/favorite/follow content it likes; the ancestor’s “run a round” headless duty shift is also subject to the same configuration and limits. The first gate to protect the account is allowWrite; the second is the daily total and perTargetPerDay, which mitigates the situation of being induced to spam the same video after opening the gate.
Installation and Enablement¶
Prerequisites¶
dsh-bili-scrollis installed and QR code login is completed.- Node engine requirement (package.json):
node >= 22. - Peer dependencies include
dsh-bili-scroll(>=0.1.0 <0.3.0),@deepseek-ai/dsh-tools,@deepseek-ai/schemastery.
The installation section of the README only explains that local development can be linked into the profile and notes “or install directly via DSH Plugin Manager,” without providing a complete dsh plugin add … one-liner. Please refer to the DSH Plugin Manager or the Community Directory page instructions for actual installation; Directory Page: https://www.skillhub.cn/plugins/annasleepy/dsh-bili-interact.
After installation, refresh the DSH page (Ctrl+R). Since v0.0.6, switches and limits can be adjusted in Settings → bili interaction; headless profiles without a settings page still read/write the same config.json.
Write Operation Master Switch and Limits¶
Configuration file path:
~/.dsh/bili-interact/config.json
It is auto-generated on first load with default allowWrite: false. Changes take effect upon saving, no restart required; limits exceeding HARD_MAX will be clamped back.
{
"_说明": "改完保存即可生效,不需要重启。allowWrite 是总开关;其余是每日上限(只能调低)。",
"allowWrite": false,
"likePerDay": 20,
"favPerDay": 20,
"sharePerDay": 3,
"followPerDay": 10,
"dynamicPerDay": 1,
"totalPerDay": 25,
"perTargetPerDay": 2
}
Common boolean items also include: allowLike / allowFav / allowFollow (can be enabled by default), allowShare / allowDynamic (public publishing types, off by default), preferFollowing, allowFavFolderCreate. Revoke-type actions (unlike / unfav / unfollow) are not subject to switch restrictions and do not consume quota.
View current configuration and today’s usage: call bili_touch_status.
Typical Usage¶
Recommended Reading Order for a Duty Shift¶
- Call
bili_following_updates(defaultlimit10,maxUps15); ifisNewis present, prioritize viewing new videos from followed UPs (uploaders). - Call
bili_trendingwhen needing to scan the plaza for hot topics. - Call
bili_fav_foldersbefore favoriting, then callbili_touchfor the target BV, e.g.,action: "fav"with optionalfolders(1–3 folder names or IDs). - Before the end of the round, use
bili_send_dmto send a briefing to the configureddmUid(default472463484, change config to switch recipients); one per round, default 5 per day (hard max 10).
Favoriting and Sharing Notes¶
- A video can go into multiple favorite folders simultaneously; do not create a new folder for every video. The README suggests consolidating after a trial period.
- Sharing goes through the “repost dynamic” path (the original share count API returns
-403for pure API calls); if the video is too old or the author deleted the dynamic, the corresponding dynamic might not be found, and it will report an error truthfully. - bvid is case-sensitive: Normalization to the
BVprefix only happens when starting with lowercasebv; the last 10 characters must match the video page. Please copy from the page directly.
Applicable Scenarios and Notes¶
Who it suits: Users already using dsh-bili-scroll for Bilibili information acquisition who wish to let the DSH agent complete limited interactions in desktop or duty sessions under strict limits and default-off writing; if active private message briefings are needed at the end of a duty shift, bili_send_dm can supplement the lack of private message tools in the ancestor’s rounds.
Must Know:
- The plugin runs with the permissions of the current DSH process. Please review the GitHub Source Code and the MIT license yourself before installation.
- Coining (投币) is not implemented: The API triggers gaia human verification, and the plugin does not handle captchas.
- Write APIs do not auto-retry on occasional
-400 / -412 / -403errors; sharing/posting dynamics might have succeeded but not been recorded after a timeout. Do not retry immediately; check the homepage/dynamics first. - The community directory skillhub.cn is an independent site and has no official affiliation with DeepSeek / High-Flyer; metadata such as star counts are subject to what is displayed on each page at the time.
Conclusion¶
dsh-bili-interact hangs Bilibili “action” capabilities onto the ancestor’s “viewing” ecosystem: sharing credentials and environment, independent ledger and configuration, default no-write, and hard limits when writing. To view the introduction and installation entry, see the Community Directory annasleepy/dsh-bili-interact; for source code and full tool descriptions, see the GitHub README.