Skip to content

API Reference parrot_tools.powerpoint

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.powerpoint

View source

PowerPoint Tool migrated to use AbstractDocumentTool framework.

Alias AbstractDocumentTool

Re-exported from parrot_tools.document.AbstractDocumentTool.

Alias DocumentGenerationArgs

Re-exported from parrot_tools.document.DocumentGenerationArgs.

Class PowerPointArgs

Arguments schema for PowerPoint presentation generation.

Attributes:

Attribute Type Description
template_name Optional[str]
template_vars Optional[Dict[str, Any]]
pptx_template Optional[str]
pptx_template_path Optional[Path]
slide_layout int
title_styles Optional[Dict[str, Any]]
content_styles Optional[Dict[str, Any]]
max_slides int
split_by_headings bool
enable_images bool
image_width Optional[float]
image_height Optional[float]
max_image_size float
image_quality str
image_timeout int

Method PowerPointArgs.validate_template_name

validate_template_name(v)

Parameter Type Default Description
v

Method PowerPointArgs.validate_pptx_template

validate_pptx_template(v)

Parameter Type Default Description
v

Class PowerPointTool

PowerPoint Presentation Generator Tool.

This tool converts text content (including Markdown and HTML) into professionally formatted PowerPoint presentations. It automatically splits content into slides based on headings and supports custom templates, styling, and layout options.

Features:

  • Automatic slide splitting based on headings (H1, H2, H3, etc.)
  • Markdown to PowerPoint conversion with proper formatting
  • HTML to PowerPoint conversion support
  • Custom PowerPoint template support
  • Jinja2 HTML template processing
  • Configurable slide layouts and styling
  • Table, list, and content formatting
  • Professional presentation generation

Slide Splitting Logic:

  • H1 (# Title) → Title slide (layout 0)
  • H2 (## Section) → Content slide (layout 1)
  • H3 (### Subsection) → Content slide (layout 1)
  • Content between headings → Added to the slide
Parameter Type Default Description
templates_dir Optional[Path] None Directory containing HTML and PowerPoint templates
output_dir Optional[Union[str, Path]] None Directory where generated presentations will be saved
pptx_template_path Optional[Path] None
default_html_template Optional[str] None Default HTML template for content processing
artifact_store Any None Server-managed artifact store (exports are published there when set)
**kwargs {} Additional arguments for AbstractDocumentTool

Method PowerPointTool.debug_content_parsing

Debug method to see how content is being parsed.

debug_content_parsing(content: str) -> Dict[str, Any]

Parameter Type Default Description
content str Input content to debug

Returns: Dict[str, Any] — Dictionary with debug information

Alias safe_template_name

Re-exported from parrot_tools._exports.safe_template_name.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally