Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Search, analyze, and interact with Xiaohongshu (RedNote/小红书) content via a local MCP server and shell scripts.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/comment.sh
1#!/bin/bash2# 发表评论到小红书帖子34NOTE_ID="$1"5XSEC_TOKEN="$2"6CONTENT="$3"78if [ -z "$NOTE_ID" ] || [ -z "$XSEC_TOKEN" ] || [ -z "$CONTENT" ]; then9echo "用法: $0 <note_id> <xsec_token> <评论内容>"10exit 111fi1213SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"14ARGS=$(jq -n --arg fid "$NOTE_ID" --arg tok "$XSEC_TOKEN" --arg ct "$CONTENT" \15'{"feed_id":$fid,"xsec_token":$tok,"content":$ct}')16"$SCRIPT_DIR/mcp-call.sh" post_comment_to_feed "$ARGS"17