Edit PowerPoint Slides and Text
ppt_editBatch-edit PowerPoint slide text and slides: find/replace, format text, manage bullets, notes, hyperlinks, and insert, delete, duplicate, reorder, hide, or section slides with automatic backups.
Instructions
Slide text and slides: the batch editor (apply_edits), find and replace, placeholders, fit, text formatting, bullets, text boxes, notes, hyperlinks, and inserting, deleting, duplicating, ordering, hiding and sectioning slides. Shapes and pictures are ppt_graphics; tables and charts are ppt_tables. Every edit backs the file up first and saves atomically. Edits to a deck open in PowerPoint stay unsaved for the user to review and save; call live_save only when the user asks. Operations, one per line, as name: what it does:
apply_edits: Apply many edits (text, paragraphs, shapes, tables, speaker notes) in one call: one backup and one save; one stale anchor refuses all.
search_and_replace: Find and replace across the deck, SmartArt text included, keeping each run's formatting.
set_placeholder_text: Fill a layout placeholder (title, subtitle, body) with text that takes the layout's styling.
fit_text: Shrink overflowing text to fit its box; this is an estimate, so check with export_slide_image.
format_text: Format existing text in one shape: whole shape, one paragraph, or a character range (start/end from find_text, file-mode only).
set_bullets: Set character, numbered or no bullets on a text shape's paragraphs.
insert_textbox: Add a free text box at a position in inches, for labels and callouts.
set_notes: Replace one slide's speaker notes, or many in one save with notes; dropping bold, bullets or links needs flatten=true.
delete_notes: Remove one slide's speaker notes entirely.
set_hyperlink: Set a hyperlink (a URL or a jump to a slide) on a shape or text range, replacing any link there.
remove_hyperlink: Remove hyperlinks from a shape or text range.
insert_slide: Add a slide from a layout (by name or index), with the layout's placeholders ready to fill.
delete_slide: Delete a slide and everything only it used; links to it are disabled. set_slide_hidden keeps it instead. More operations follow, in the same format, in the op parameter's description.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | The operation to run: one listed in this tool's description, or one of these, in the same format: - duplicate_slide: Copy a slide with its notes, charts and embedded objects; the copy lands after the original by default. - reorder_slides: Put every slide in a new order in one call; the order must list every slide exactly once. - move_slide: Move one slide to a new 0-based position. - set_slide_hidden: Hide or unhide a slide; hidden slides keep their content but are skipped in the show. - manage_section: Create, rename or delete a section, or move a slide into one (action); slides are never deleted. - set_language: Set the proofing language on every text run across slides, layouts, masters, notes and charts. | |
| args | No | The operation's arguments as an object, including file_path unless the operation names other paths or reads no deck; unknown keys are refused. Slides count from 1 in slide_number and from 0 in slide: the user's slide 2 is slide_number 2 or slide 1. ppt_help lists every argument. |