Document Tools
生成带缩略图和描述区域的分镜脚本纸
用三种语言从你的代码中调用此工具。
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/pdf-storyboard-sheet' \
-F 'file=@/path/to/frameImages.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/zh/api/tools/pdf-storyboard-sheet' \
-F 'title=Storyboard Test Sheet' \
-F 'subtitle=Preview output for QA' \
-F 'sceneName=Scene 01A' \
-F 'frameImages=/public/samples/png/earth1_1-1_2048-2048.png,/public/samples/png/earth2_16-9_2560-1440.png,/public/samples/png/earth4_1-1_2048-2048.png,/public/samples/png/earth1_16-9_2560-1440.png,/public/samples/png/earth1_3-4_1728-2304.png,/public/samples/png/earth4_3-4_1728-2304.png' \
-F 'frameDescriptions=Wide establishing shot.
Character enters frame.
Close-up on key action.
Over-shoulder reveal.
Reaction close-up.
Transition wide shot.' \
-F 'columns=2' \
-F 'rows=3' \
-F 'minFrames=6' \
-F 'fitMode=cover' \
-F 'showGuides=true' \
-F 'pageSize=A4' \
-F 'landscape=false' \
-F 'waitUntil=networkidle0' \
-F 'waitTime=600'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/pdf-storyboard-sheet| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| title | text | 是 | — |
| subtitle | text | 否 | — |
| sceneName | text | 否 | — |
| frameImages | file需先上传 | 否 | — |
| frameDescriptions | textarea | 否 | — |
| columns | number | 否 | — |
| rows | number | 否 | — |
| minFrames | number | 否 | — |
| fitMode | select | 否 | — |
| showGuides | checkbox | 否 | — |
| pageSize | select | 否 | — |
| landscape | checkbox | 否 | — |
| waitUntil | select | 否 | — |
| waitTime | number | 否 | — |
文件结果
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-pdf-storyboard-sheet": {
"name": "pdf-storyboard-sheet",
"description": "生成带缩略图和描述区域的分镜脚本纸",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-storyboard-sheet",
"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": "pdf-storyboard-sheet",
"arguments": {
"title": "Storyboard Test Sheet",
"subtitle": "Preview output for QA",
"sceneName": "Scene 01A",
"frameImages": [
"/public/samples/png/earth1_1-1_2048-2048.png",
"/public/samples/png/earth2_16-9_2560-1440.png",
"/public/samples/png/earth4_1-1_2048-2048.png",
"/public/samples/png/earth1_16-9_2560-1440.png",
"/public/samples/png/earth1_3-4_1728-2304.png",
"/public/samples/png/earth4_3-4_1728-2304.png"
],
"frameDescriptions": "Wide establishing shot.\nCharacter enters frame.\nClose-up on key action.\nOver-shoulder reveal.\nReaction close-up.\nTransition wide shot.",
"columns": 2,
"rows": 3,
"minFrames": 6,
"fitMode": "cover",
"showGuides": true,
"pageSize": "A4",
"landscape": false,
"waitUntil": "networkidle0",
"waitTime": 600
}
}
}有问题或反馈?请联系 [email protected]