Find Text
find_textLocate any text in a PowerPoint deck and get exact slide, shape, and character positions for targeted edits or formatting updates.
Instructions
Search the deck's text. Returns every match with slide index, shape id, paragraph index, and character offsets, exactly the addresses format_text (graphics pack) and apply_edits consume. regex=True treats query as a regular expression (guarded against catastrophic backtracking). Matches text as displayed, not raw XML, so search for & rather than &. count is always the true total; a "page" block gives the omitted count and next offset when more matched than the budget fits. compact=True returns matches as a fields header plus one array each. Formatting-aware replacement lives in the graphics pack: enable_tools(packs=['graphics']). Use this to locate text; to read it in order, use get_text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| regex | No | ||
| scope | No | ||
| offset | No | ||
| compact | No | ||
| file_path | Yes | ||
| include_notes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||