专业幻灯片添加指南
Office-PowerPoint-MCP-Server提供完整的API接口,可通过AI助手调用工具函数实现幻灯片添加和美化。
基础添加步骤
使用add_slide工具添加新幻灯片,指定布局类型:
result = use_mcp_tool(
server_name="ppt",
tool_name="add_slide",
arguments={
"layout_index": 0, # 指定幻灯片类型
"title": "演示标题",
"presentation_id": presentation_id
}
)
专业设计应用
通过apply_professional_design工具应用设计模板:
result = use_mcp_tool(
server_name="ppt",
tool_name="apply_professional_design",
arguments={
"operation": "slide",
"slide_type": "title_content",
"color_scheme": "modern_blue",
"title": "季度报告",
"content": [...]
}
)
关键参数说明
- color_scheme:支持modern_blue、corporate_gray、elegant_green、warm_red四种方案
- slide_type:可指定标题页/内容页/图表页等多种布局
- dynamic_text:自动根据内容长度调整字体大小和布局
本答案来源于文章《Office-PowerPoint-MCP-Server:通过AI助手创建和编辑PowerPoint演示文稿的工具》




























