当无头运行(托管代理 / CMA 模式)且需要将 PowerPoint
演示文稿作为文件产物交付而非通过
mcp__office__powerpoint_* 编辑实时文档时使用此技能。
./out/<名称>.pptx。如果
./out/ 不存在则创建。编写简短的 Python 脚本并使用 Bash 运行。使用
python-pptx:
from pptx import Presentation
from pptx.util import Inches, Pt
prs = Presentation("./templates/firm-template.pptx") # 如果提供了模板
# 或:prs = Presentation()
slide = prs.slides.add_slide(prs.slide_layouts[5]) # 仅标题
slide.shapes.title.text = "估值摘要"
# ... 添加表格 / 图表 / 文本框 ...
prs.save("./out/pitch-<目标>.pptx")pitch-deck 技能)./out/model.xlsx,在脚注中标明工作表和单元格。./templates/ 时;否则使用默认布局。如果 mcp__office__powerpoint_* 工具可用(Cowork
插件模式),则使用那些工具 —
它们驱动用户的实时文档并带有检查点。此技能是无头运行的文件生成后备方案。