get_transcript
Retrieve Bilibili subtitles or transcripts by video ID, optionally filter by keyword or read only the first portion to reduce tokens; check data source before citing AI-generated text.
Instructions
取字幕,默认带压缩——这是阶段 2 里最容易把上下文打爆的一步。
三种用法,按成本从低到高: head_ratio=0.2 只读前 20%(离场规则的判断依据:核心关键词还没出现就退出) query="关键词" 只返回命中句 ±2 句上下文(省 80–95% token,优先用这个) 都不给 返回全量(长视频会非常贵,慎用)
返回 data_source 字段: "subtitle" 人工 CC —— 可以当引用 "ai_subtitle" AI 字幕 —— 不可当引用。技术类视频术语错一个,后面所有推论 都建立在错的前提上。用它定位、不用它举证。
page:多 P 视频取第几部分(默认 1)。越界会明确报错,不会静默回落到 P1。
分P数 > 1 时返回里带 degraded 说明"本次只读了第几部分"。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bvid | Yes | ||
| page | No | ||
| query | No | ||
| max_chars | No | ||
| head_ratio | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |