script.run
Execute sandboxed Python scripts against the live PowerPoint document to modify slides, shapes, and text through bound APIs, with unsafe imports and eval blocked.
Instructions
Execute a Python string against the live Document. Bound names: document, slides, current_slide, undo_stack, rt (with add_text/add_rect/...), math, random, json. Imports, eval/exec, and dunder access are blocked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |