modelscope.cn

xhs-search

搜索小红书笔记,支持? 当用户想在小红书上搜索、查找?

Installation

$ npx skills add https://modelscope.cn

Also in this package

Other skills from modelscope.cn · top by installs.

npx skills add https://modelscope.cn

Browse all from modelscope.cn

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,391 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

执行流程

1. 确认搜索条件

从用户输入中提取:

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

2. 调用搜索

调用 search_feeds:

  • keyword(string,必填)
  • filters(object,可选):

- sortby:综合 | 最新 | 最多点赞 | 最多评论 | 最多收藏 - notetype:不限 | 视频 | 图文 - publishtime:不限 | 一天内 | 一周内 | 半年内 - searchscope:不限 | 已看过 | 未看过 | 已关注 - location:不限 | 同城 | 附近

3. 展示结果

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

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

提示用户可以:

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

失败处理

场景 处理
未登录 引导使用 xhs-login 登录
无搜索结果 建议调整关键词或筛选条件