search_videos
Search Bilibili videos by keyword to find matching content, then paginate results and filter fields with jq before retrieving full details separately.
Instructions
每批最多 30 条,最多翻 30 批。
结果已滤掉付费课程,一批可能不满 30 条。summary 是平台截断过的简介, 完整简介通过 get_video_info 获取。
(search videos, find video by keyword)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jq | Yes | 必填的 jq 表达式。输入是本批条目组成的数组,每条字段:title,url,author,author_url,published_at,duration_sec,category,tags,summary,view_count,danmaku_count,comment_count,like_count,favorite_count。体积大、多数任务用不到的字段:author_url(查看 UP 主时需要)、tags、summary;特定任务需要时照常使用。分页字段不在输入里;只筛本批,筛完为空时仍以 has_more 判断有无下一批。结果为字符串时原样返回,其他结果编码为表格或 JSON;结果为数组时 jq_count 是其长度。 | |
| order | No | 排序。relevance 是 B 站的综合排序,推荐用默认值,不推荐其他排序。 | relevance |
| cursor | No | 续取游标:不传从头开始,回传上次返回的 next_cursor 取下一批。 | |
| keyword | Yes | 搜索关键词。 | |
| description | Yes | 格式为 工具名:目的。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| results | Yes | ||
| has_more | Yes | ||
| jq_count | No | ||
| elapsed_s | No | ||
| next_cursor | No |