xhs_search_notes
搜索小红书 / Xiaohongshu / XHS / RedNote 相关笔记。用户需要按搜索词查找笔记时使用;已有笔记链接或 note_id 且需要单篇笔记详情时使用对应的详情工具;需要评论、回复或口播转文字时使用相应的 URL/ID 工具;支持 page_token 翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回,不得截断、缩写、掩码或用省略号替换中间内容。 返回的 note_url 在任何使用场景都必须原样保留完整 URL,包括 xsec_token 等 query 参数;例如最终回答、展示、引用、存储、输出或传递;不得用 ...
This record as markdown: /tools/com-52choujiang-xhs-insights/xhs-search-notes.md
What xhs_search_notes does on SocialDataX 小红书 Xiaohongshu XHS RedNote MCP
AI agents call xhs_search_notes to retrieve information from SocialDataX 小红书 Xiaohongshu XHS RedNote MCP without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | 搜索词,可传关键词或短语,例如品牌名、话题、人物名、产品名或内容需求;不要传笔记链接、主页链接、note_id、user_id 或 page_token。 |
note_type | string | — | 笔记类型筛选,可选:all(不限,默认)、image(图文)、video(视频) |
sort_type | string | — | 笔记搜索结果排序方式,可选:general(综合,默认)、time_descending(最新发布优先)、like_count_descending(最多点赞优先)、comment_count_descending(最多评论优先)、collect_count_descending(最多收藏优先) |
page_token | string | — | 笔记搜索分页令牌。首次请求留空;继续翻页时传入上一页返回的完整 next_page_token 原样作为 page_token 传回。page_token 只能用于同一关键词、排序、笔记类型、发布时间范围和调用方的笔记搜索链路;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成。 |
publish_time_range | string | — | 发布时间范围筛选,可选:all(不限,默认)、day(一天内)、week(一周内)、half_year(半年内) |
Parameters from the server's own tool schema.
Why xhs_search_notes is rated Low
Even though xhs_search_notes only reads data, uncontrolled read access leaks sensitive information and racks up API costs: an agent caught in a retry loop can make thousands of calls a minute without anyone noticing.
Attacks that exploit this kind of access
The rule that runs xhs_search_notes safely
PolicyLayer is an MCP gateway: it sits between your AI agents and SocialDataX 小红书 Xiaohongshu XHS RedNote MCP, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For xhs_search_notes, this is the rule to start with:
xhs_search_notes is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect SocialDataX 小红书 Xiaohongshu XHS RedNote MCP, apply this rule, and every xhs_search_notes call is checked against it from then on.
Questions about xhs_search_notes
搜索小红书 / Xiaohongshu / XHS / RedNote 相关笔记。用户需要按搜索词查找笔记时使用;已有笔记链接或 note_id 且需要单篇笔记详情时使用对应的详情工具;需要评论、回复或口播转文字时使用相应的 URL/ID 工具;支持 page_token 翻页。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回,不得截断、缩写、掩码或用省略号替换中间内容。 返回的 note_url 在任何使用场景都必须原样保留完整 URL,包括 xsec_token 等 query 参数;例如最终回答、展示、引用、存储、输出或传递;不得用 note_id 重新拼接链接。. It is categorised as a Read tool in the SocialDataX 小红书 Xiaohongshu XHS RedNote MCP MCP Server, which means it retrieves data without modifying state.
xhs_search_notes accepts 5 parameters: keyword, note_type, sort_type, page_token, publish_time_range. Required: keyword. The full parameter table on this page comes from the server's own tool schema.
Register the SocialDataX 小红书 Xiaohongshu XHS RedNote MCP server in PolicyLayer and add a rule for xhs_search_notes: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches SocialDataX 小红书 Xiaohongshu XHS RedNote MCP. Nothing to install.
xhs_search_notes is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the xhs_search_notes rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for xhs_search_notes. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
xhs_search_notes is provided by the SocialDataX 小红书 Xiaohongshu XHS RedNote MCP server (https://mcp.socialdatax.com/xhs/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on SocialDataX 小红书 Xiaohongshu XHS RedNote, and thousands of servers like it.
Across the catalogue