Build Vidleaf Deep-Reading Link
build_vidleaf_open_linkNormalize video links and mobile share snippets into Vidleaf reader URLs, domain-swap shortcuts, and Markdown citations offline.
Instructions
Offline-normalize any YouTube, Bilibili, Facebook, Douyin, Xiaohongshu, or X video link or mobile share snippet into a direct Vidleaf reader URL (https://vidleaf.app/open?url=...), domain-swap shortcut, and Markdown citation without making network requests. Use when generating clickable deep-reading links, AI chapter-summary handoffs (goal='summary'), or Obsidian/Notion citations. To fetch actual subtitle text, use read_video_transcript instead.
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": {
"url": "<url>"
},
"name": "build_vidleaf_open_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Video URL, Bilibili BV/av ID, or pasted Douyin/Xiaohongshu/Bilibili mobile share text. | |
| goal | No | Target reader view: 'transcript' for interactive captions or 'summary' for AI chapter outline. | transcript |
| locale | No | Optional Vidleaf interface locale (zh, zh-Hant, en, es, ja, pt-BR). | |
| start_seconds | No | Optional playback timestamp in seconds (`t=`) for YouTube and Bilibili links. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| open_url | Yes | Direct Vidleaf `/open` handoff URL. | |
| platform | Yes | Detected video platform. | |
| extracted_url | Yes | Cleaned video URL extracted from input. | |
| domain_swap_url | Yes | Address-bar domain-swap URL when supported, else null. | |
| summary_open_url | Yes | Direct Vidleaf `/open?...&goal=summary` URL. | |
| markdown_citation | Yes | Ready-to-paste Markdown citation block. |