@8btc/ppt-generator-mcp 0.0.32-beta.5 → 0.0.32-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -64,7 +64,7 @@ const tool = {
|
|
|
64
64
|
name: "generate_ppt",
|
|
65
65
|
title: "ppt生成工具",
|
|
66
66
|
description: `
|
|
67
|
-
|
|
67
|
+
generate_ppt参数outline的要求
|
|
68
68
|
1. 严格按照以下JSON格式生成:
|
|
69
69
|
- cover: 封面页,包含title和text
|
|
70
70
|
- contents: 目录页,包含items数组
|
|
@@ -72,15 +72,6 @@ const tool = {
|
|
|
72
72
|
- content: 内容页,包含title和items数组,每个item包含title和text
|
|
73
73
|
- end: 结束页
|
|
74
74
|
|
|
75
|
-
2. 内容要求:
|
|
76
|
-
- **章节数量**:整个PPT的目录控制生成 2-4 个章节(即ppt的目录页控制2-4个具体目录)
|
|
77
|
-
- **页数控制**:用户未指定生成总页数,控制在8-15页
|
|
78
|
-
- **要点精炼**:每个内容页的 \`items\` 数组中,每个要点的 \`title\` 必须是高度提炼的短句(每个章节包含1-4个要点),长度不超过 15 个字符,每个要点的 \`text\` 要点的详细内容介绍可以有更多内容介绍。符合PPT标题简洁,内容充裕的原则。
|
|
79
|
-
- **逻辑性**:内容必须严格遵循**总-分-总**的逻辑结构,确保章节间过渡自然。
|
|
80
|
-
- **专业性**:内容要专业、有逻辑性,并能直接支持演示文稿使用。
|
|
81
|
-
- time取get_timely_info的结果中的now_data_time值
|
|
82
|
-
- **文档结构严格遵循**:封面页 → 目录页 → 过渡页 → 内容页 → 结束页
|
|
83
|
-
|
|
84
75
|
参考格式示例(请根据实际主题调整内容):
|
|
85
76
|
\`\`\`json
|
|
86
77
|
[
|
package/dist/tools/update-ppt.js
CHANGED
|
@@ -20,10 +20,9 @@ const inputSchema = {
|
|
|
20
20
|
templateFilePath: zod_1.z.string().optional(),
|
|
21
21
|
// 输出地址
|
|
22
22
|
outputPath: zod_1.z.string().optional(),
|
|
23
|
-
outlinePath: zod_1.z
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
pageIndex: zod_1.z.number().describe("需要替换的页码,从0开始"),
|
|
23
|
+
outlinePath: zod_1.z.string().describe(`需要替换的PPT文件大纲(pptFileName_outline.json)文件地址, 文件名由ppt文件名和下划线outline拼接,
|
|
24
|
+
例如:AI个性化学习_outline.json`),
|
|
25
|
+
pageIndex: zod_1.z.number().describe("需要替换的页码,从0开始, 例如:2"),
|
|
27
26
|
newContent: zod_1.z.discriminatedUnion("type", [
|
|
28
27
|
zod_1.z.object({
|
|
29
28
|
type: zod_1.z.literal("cover"),
|