Media
粘贴时间码章节列表,一次生成全部交付格式:Podcasting 2.0 章节 JSON(v1.2.0)与 RSS podcast:chapters 标签、可选把 ID3v2.4 CHAP+CTOC 章节帧直接烧入上传的 MP3(毫秒为普通大端 uint32、偏移 0xFFFFFFFF、每章嵌 TIT2 子帧、保留原有标签帧)、Vorbis CHAPTER001 注释对(OGG/Opus)、mp4chaps 文本、YouTube 说明栏时间戳块与 SRT 副车文件,并附各播放器真实支持情况(Apple 自 2025 起支持 RSS JSON;Pocket Casts/Overcast 仅读内嵌 ID3;Spotify 两者都不读)。
用三种语言从你的代码中调用此工具。
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'http://127.0.0.1:3003/api/upload/presign/podcast-chapter-marker-builder' \
-H 'Content-Type: application/json' \
-d '{"filename":"mp3File.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'http://127.0.0.1:3003/zh/api/tools/podcast-chapter-marker-builder' \
-F 'chapterList=0:00 Cold open
1:13 Interview: scaling Kafka consumers
6:58 Listener questions
18:40 Tooling corner
41:05 Corrections
52:30 Outro' \
-F 'mp3File=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'podcastName=Ship It!' \
-F 'episodeTitle=Ep. 204 — Scaling Kafka Consumers' \
-F 'jsonUrl=shipit.example/ep204/chapters.json' \
-F 'chapterImage='以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST http://127.0.0.1:3003/zh/api/tools/podcast-chapter-marker-builder| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| chapterList | textarea | 是 | — |
| mp3File | file需先上传 | 否 | — |
| podcastName | text | 否 | — |
| episodeTitle | text | 否 | — |
| jsonUrl | text | 否 | — |
| chapterImage | text | 否 | — |
HTML 结果
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-podcast-chapter-marker-builder": {
"name": "podcast-chapter-marker-builder",
"description": "粘贴时间码章节列表,一次生成全部交付格式:Podcasting 2.0 章节 JSON(v1.2.0)与 RSS podcast:chapters 标签、可选把 ID3v2.4 CHAP+CTOC 章节帧直接烧入上传的 MP3(毫秒为普通大端 uint32、偏移 0xFFFFFFFF、每章嵌 TIT2 子帧、保留原有标签帧)、Vorbis CHAPTER001 注释对(OGG/Opus)、mp4chaps 文本、YouTube 说明栏时间戳块与 SRT 副车文件,并附各播放器真实支持情况(Apple 自 2025 起支持 RSS JSON;Pocket Casts/Overcast 仅读内嵌 ID3;Spotify 两者都不读)。",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=podcast-chapter-marker-builder",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}连接到 SSE 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "podcast-chapter-marker-builder",
"arguments": {
"chapterList": "0:00 Cold open\n1:13 Interview: scaling Kafka consumers\n6:58 Listener questions\n18:40 Tooling corner\n41:05 Corrections\n52:30 Outro",
"mp3File": "https://example.com/file.ext",
"podcastName": "Ship It!",
"episodeTitle": "Ep. 204 — Scaling Kafka Consumers",
"jsonUrl": "shipit.example/ep204/chapters.json",
"chapterImage": ""
}
}
}有问题或反馈?请联系 [email protected]