weibo_search
Search Weibo posts by keyword. Requires a logged-in Weibo cookie (SUB token) to access the mobile API and retrieve matching posts.
Instructions
搜索微博帖子。需要登录 cookies(SUB token)。
⚠️ 微博搜索 API 需要登录 — 游客模式不可用。 热搜(weibo_hot_list)无需登录即可使用。
原理: 调用 m.weibo.cn 移动端 API,解析 cards[].mblog。 Cookie 文件: ~/.cn-scraper-cookies/weibo.json(需要 SUB cookie)
并发安全: ✅ 纯 HTTP/REST API,无共享状态,任意并发调用安全。
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": {
"keyword": "<keyword>"
},
"name": "weibo_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 返回条数上限 (默认 10) | |
| keyword | Yes | 搜索关键词,如 "华为" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||