prepare_note_material
Generate a note-ready material pack from a video URL or local file: transcript, segments, optional frames, Bilibili comments, and media paths, so an AI agent can write structured notes.
Instructions
提交一个视频链接/本地文件,异步产出「素材包」:转写全文+分段、可选视频帧(file:// 图片)、 可选 B 站弹幕/评论、音视频本地路径。不调用 LLM 总结,供 AGENT(Claude Code)读取素材自行写笔记。
- video_url: 必填,B 站/YouTube/抖音/快手链接或本地文件路径;
- platform: 可省略,自动识别;
- video_understanding / video_interval / grid_size: 是否抽帧 + 截帧间隔(秒)+ 网格大小
(如 [3,3]);默认关(不抽帧)。开启后 result.frames 是持久化帧图片的 file:// 绝对路径;
- include_comments / comments_limit: 是否抓取 B 站弹幕+热门评论(仅 B 站视频生效;默认关 / 20 条)。
不需要配置 LLM 供应商/模型。返回 {task_id, status: PENDING, kind: material}。
之后用 get_task_status / wait_for_note 查询;SUCCESS 时 result 含
{kind: material, title, transcript, frames, comments_danmaku, video_path, audio_path}。
需要 AI 生成结构化 Markdown 笔记请用 generate_note。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | No | ||
| grid_size | No | ||
| video_url | Yes | ||
| comments_limit | No | ||
| video_interval | No | ||
| include_comments | No | ||
| video_understanding | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |