Add to Favorites
add_favorite把地点、帖子或数字人加入当前账号的收藏夹,可附带分类、标签和备注。item_type 为 location / post / digital_human;post 与 digital_human 必须真实存在。重复收藏同一内容不会报错。
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": {
"item_type": "<item_type>",
"item_id": "<item_id>",
"item_name": "<item_name>"
},
"name": "add_favorite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | 备注 | |
| tags | No | 标签数组,最多 10 个,单个最长 20 字 | |
| item_id | Yes | 对象 id(帖子 id、数字人 id,或地点的自定义标识) | |
| category | No | 自定义分类,如「必去」「想去」「美食」,最长 50 字 | |
| item_name | Yes | 给用户看的名字,如地名或帖子摘要,用于收藏列表展示 | |
| item_type | Yes | 收藏对象类型:location 地点 / post 帖子 / digital_human 数字人 |