点赞 / 取消点赞
noy_like_postLikes or unlikes a community post by checking its current state and confirming the result, with an explicit action option to prevent duplicate toggles.
Instructions
给帖子点赞或取消点赞。接口是开关式(调一次翻转一次),所以本工具会先读当前状态再决定要不要调,并在调用后回读确认。可以指定 action=like / unlike 表达明确意图,避免重复调用把自己又取消掉。
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": {
"post_id": "<post_id>"
},
"name": "noy_like_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adult | No | 是否请求成人向内容(allow-adult 请求头)。不传则用环境变量 NOY_ALLOW_ADULT,默认 false。注意 /api/home 的服务端默认值是 true(不带就是 R18),本项目会显式传 false。 | |
| action | No | like = 点赞;unlike = 取消;toggle = 翻转 | like |
| post_id | Yes |