搜索

PythonReactSEOPDF
OpenClaw

rednote-mac

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.

huangrh990 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install huangrh99/rednote-mac

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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 workfl...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/huangrh99/rednote-mac
Version
—
Commit
07cf1436ad2ef42f6815e2d62583ba8e03fee1fa
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

rednote-mac

Control the RedNote (Xiaohongshu) Mac desktop app via macOS Accessibility API.

Fills the gap that headless browser tools leave behind — DMs, comment replies, video comment reading, and more. Drives the native App directly, no browser, no API tokens, no reverse engineering.


Why rednote-mac?

Feature rednote-mac headless (xiaohongshu-mcp)
Browse feed & search ✅ ✅
Like, collect, follow ✅ ✅
Post comments ✅ ✅
Reply to comments ✅ ❌
Direct messages ✅ ❌
Video comment list ✅ ❌
Author profile stats ✅ ❌
Headless / no screen needed ❌ ✅

Requirements

  • macOS with RedNote installed
  • Terminal → Accessibility permission — System Settings → Privacy & Security → Accessibility → enable Terminal
  • RedNote App visible on screen — not minimized, screen not locked
  • Python + uv (recommended) or pip
  • cliclick — brew install cliclick

⚠️ The Accessibility permission grants control over all apps on your Mac, not just RedNote. Only enable if you trust this skill. Consider running automation in a dedicated user account.


Install

As an OpenClaw Plugin (recommended)
# 1. Install via clawhub
clawhub install rednote-mac

# 2. Run the setup script
cd ~/.agents/skills/rednote-mac && bash install.sh

# 3. Activate
openclaw config set tools.allow '["rednote-mac"]'
openclaw gateway restart

# 4. Verify
openclaw plugins list | grep rednote-mac
As a Claude Desktop / Cursor MCP server
{
  "mcpServers": {
    "rednote-mac": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/rednote-mac", "python", "server.py"]
    }
  }
}

Available Tools (20 total)

Navigation & Search
Tool Parameters Description
`xhs_...

来源内容

SKILL.md
# 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

```bash
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 workfl...
README
# rednote-mac

**Control the RedNote (Xiaohongshu) Mac desktop app via macOS Accessibility API.**

Fills the gap that headless browser tools leave behind — DMs, comment replies, video comment reading, and more. Drives the native App directly, no browser, no API tokens, no reverse engineering.

---

## Why rednote-mac?

| Feature | rednote-mac | headless (xiaohongshu-mcp) |
|---------|:-----------:|:--------------------------:|
| Browse feed & search | ✅ | ✅ |
| Like, collect, follow | ✅ | ✅ |
| Post comments | ✅ | ✅ |
| **Reply to comments** | ✅ | ❌ |
| **Direct messages** | ✅ | ❌ |
| **Video comment list** | ✅ | ❌ |
| **Author profile stats** | ✅ | ❌ |
| Headless / no screen needed | ❌ | ✅ |

---

## Requirements

- **macOS** with [RedNote](https://www.rednote.app) installed
- **Terminal → Accessibility permission** — System Settings → Privacy & Security → Accessibility → enable Terminal
- **RedNote App visible on screen** — not minimized, screen not locked
- **Python** + [uv](https://github.com/astral-sh/uv) (recommended) or pip
- **cliclick** — `brew install cliclick`

> ⚠️ The Accessibility permission grants control over **all apps** on your Mac, not just RedNote. Only enable if you trust this skill. Consider running automation in a dedicated user account.

---

## Install

### As an OpenClaw Plugin (recommended)

```bash
# 1. Install via clawhub
clawhub install rednote-mac

# 2. Run the setup script
cd ~/.agents/skills/rednote-mac && bash install.sh

# 3. Activate
openclaw config set tools.allow '["rednote-mac"]'
openclaw gateway restart

# 4. Verify
openclaw plugins list | grep rednote-mac
```

### As a Claude Desktop / Cursor MCP server

```json
{
  "mcpServers": {
    "rednote-mac": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/rednote-mac", "python", "server.py"]
    }
  }
}
```

---

## Available Tools (20 total)

### Navigation & Search
| Tool | Parameters | Description |
|------|-----------|-------------|
| `xhs_...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.