xhs_like_feed
Like or unlike Xiaohongshu notes using note ID and access token. Automatically checks the current state and skips the action if it already matches the requested state.
Instructions
为笔记点赞或取消点赞:智能检测当前状态,已处于目标状态时自动跳过。需要笔记 ID 与 xsecToken。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"feedId": "<feedId>",
"xsecToken": "<xsecToken>"
},
"name": "xhs_like_feed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feedId | Yes | 笔记 ID | |
| unlike | No | true 为取消点赞,默认 false(点赞) | |
| xsecToken | Yes | 访问令牌 |