技能圖譜SKILLSGROVE
技能圖譜/短影片與自媒體/autoclaw-cc/xiaohongshu-mcp-skills/xhs-search

xhs-search

安裝

$npx skills add https://github.com/autoclaw-cc/xiaohongshu-mcp-skills --skill xhs-search
$git clone --depth 1 https://github.com/autoclaw-cc/xiaohongshu-mcp-skills.git /tmp/xiaohongshu-mcp-skills && mkdir -p ~/.claude/skills && cp -r /tmp/xiaohongshu-mcp-skills/skills/xhs-search ~/.claude/skills/xhs-search
請幫我安裝這個 Agent Skill:https://github.com/autoclaw-cc/xiaohongshu-mcp-skills/tree/c79206ce4191fdb5f4c72d62155ed8ac49e7d0ae/skills/xhs-search ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MIT搜索小红书笔记,支持关键词搜索和多维度筛选(排序、内容类型、时间范围、位置等)。 当用户想在小红书上搜索、查找内容时使用——包括搜笔记、找攻略、看看小红书上有没有某某内容、搜一下、查一查等场景。
以下 SKILL.md 內容轉載自 autoclaw-cc/xiaohongshu-mcp-skills(提交 c79206c),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 Auto-Claw-CC 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

执行流程

1. 确认搜索条件

从用户输入中提取:

  • keyword(必填)— 搜索关键词
  • filters(可选)— 筛选条件

2. 调用搜索

调用 search_feeds:

  • keyword(string,必填)
  • filters(object,可选):
    • sort_by:综合 | 最新 | 最多点赞 | 最多评论 | 最多收藏
    • note_type:不限 | 视频 | 图文
    • publish_time:不限 | 一天内 | 一周内 | 半年内
    • search_scope:不限 | 已看过 | 未看过 | 已关注
    • location:不限 | 同城 | 附近

3. 展示结果

将搜索结果整理为列表展示,每条包含:

  • 标题、作者
  • 点赞数、评论数、收藏数
  • feed_id 和 xsec_token(后续操作需要)

提示用户可以:

  • 查看某条笔记详情(使用 xhs-explore)
  • 对笔记进行互动(使用 xhs-interact)

失败处理

场景 处理
未登录 引导使用 xhs-login 登录
无搜索结果 建议调整关键词或筛选条件
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 Auto-Claw-CC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.