360 Secure SkillHub
360 安全技能中心

Rednote Mac

基于 macOS 辅助功能 API 驱动小红书 Mac 原生客户端,可切换首页/消息/我的等标签、搜索、浏览信息流、点赞收藏关注、读取并回复或删除视频笔记评论、发送私信、获取作者关注/粉丝/点赞数,并用截图确认结果。需要终端辅助功能权限且应用可见,声明不联网、不存储凭据,仅支持 macOS。

huangrh99
huangrh99
热度 66.04
最近更新 2026-05-18 12:12:44
分类:营销依赖:MCP 服务 / 代码执行应用场景:社交媒体 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add rednote-mac
Metadata
name
rednote-mac
description
Control the RedNote (Xiaohongshu) Mac app via macOS Accessibility API. Fills the gap headless tools can't: read/reply to comments on video posts, send DMs, get author stats. No browser, no API tokens. macOS only — requires Terminal accessibility permission.
metadata
{"openclaw":{"os":["darwin"],"requires":{"bins":["cliclick","python3"],"apps":["rednote"],"permissions":["accessibility"]}}}

rednote-mac

Control RedNote's Mac app directly — no browser, no API tokens. Uses macOS Accessibility API to drive the native App.

Headless tools (xiaohongshu-mcp) can't reach DMs, comment replies, or video comment lists — this skill can.

⚠️ Requires: Terminal → Accessibility permission + RedNote App visible on screen. No network access. No credentials stored.

Setup

cd ~/.agents/skills/rednote-mac && bash install.sh
openclaw config set tools.allow '["rednote-mac"]'
openclaw gateway restart

Enable in System Settings → Privacy & Security → Accessibility → Terminal.

Navigate

xhs_navigate(tab="home")          # home / messages / profile
xhs_navigate_top(tab="discover")  # follow / discover / video
xhs_back()
xhs_search(keyword="AI paper")
xhs_screenshot()                  # always verify after navigation

Browse feed

xhs_scroll_feed(direction="down", times=5)
xhs_open_note(col=0, row=0)   # col: 0=left, 1=right  row: 0=first
xhs_screenshot()

Interact with a note

xhs_like()
xhs_collect()
xhs_follow_author()
xhs_get_note_url()   # returns xhslink.com short URL

Comments (video posts — fully reliable)

xhs_open_comments()
xhs_get_comments()
# → [{"index": 0, "author": "alice", "cx": 1450, "cy": 368}, ...]

xhs_post_comment(text="Great post!")
xhs_reply_to_comment(index=0, text="Thanks!")
xhs_delete_comment(index=0)   # ⚠️ irreversible — your comments only
xhs_scroll_comments(times=3)

Direct messages

xhs_open_dm(index=0)           # 0 = first conversation in list
xhs_send_dm(text="Hello!")
xhs_screenshot()               # confirm sent

Author stats

xhs_navigate(tab="profile")
xhs_get_author_stats()
# → {"following": "2", "followers": "29", "likes": "302", "bio": "..."}

Reference docs (load on demand)

Need to... Read
Navigate / search details docs/ref-navigation.md
Feed & note opening docs/ref-feed.md
Comment workflows docs/ref-note.md
DM details docs/ref-dm.md
Profile & stats docs/ref-profile.md
Limits & workarounds docs/ref-limits.md