xhs_get_note_comments_by_note_id
根据 note_id 获取单篇小红书笔记的一级评论,支持 sort_type 评论排序和 page_token 翻页。
This record as markdown: /tools/com-52choujiang-xhs-insights/xhs-get-note-comments-by-note-id.md
What xhs_get_note_comments_by_note_id does on SocialDataX 小红书 Xiaohongshu XHS RedNote MCP
AI agents call xhs_get_note_comments_by_note_id 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 |
|---|---|---|---|
note_id | string | Yes | note_id 是小红书笔记 ID。已有完整 note_id 时原样使用;否则可从笔记搜索、笔记详情、评论、标签页笔记列表或用户发帖列表结果复制;不得截断、缩写、脱敏、补全、格式化、重组,也不得只传前缀。 |
sort_type | string | — | 评论排序方式,可选:default(默认/综合排序)、time_descending(最新评论优先)、like_count_descending(点赞最多优先) |
page_token | object | — | 分页令牌。首次请求留空;继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回。page_token 是不透明分页令牌;只能用于同一笔记和 sort_type 的一级评论列表,不能跨笔记或 sort_type 复用;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自 |
Parameters from the server's own tool schema.
Why xhs_get_note_comments_by_note_id is rated Low
Even though xhs_get_note_comments_by_note_id 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_get_note_comments_by_note_id 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_get_note_comments_by_note_id, this is the rule to start with:
xhs_get_note_comments_by_note_id 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_get_note_comments_by_note_id call is checked against it from then on.
Questions about xhs_get_note_comments_by_note_id
根据 note_id 获取单篇小红书笔记的一级评论,支持 sort_type 评论排序和 page_token 翻页。. 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_get_note_comments_by_note_id accepts 3 parameters: note_id, sort_type, page_token. Required: note_id. 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_get_note_comments_by_note_id: 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_get_note_comments_by_note_id 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_get_note_comments_by_note_id 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_get_note_comments_by_note_id. 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_get_note_comments_by_note_id 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