set_hyperlink
Add or replace a hyperlink on a shape or text range in a PowerPoint slide, pointing to a URL, another slide, or with hover tooltip. Solves broken or missing links by atomic save with backup.
Instructions
Set a hyperlink on a shape or text range, replacing any link already there. target: a shape id, or {"shape_id": N, "paragraph": P, "start"?: S, "end"?: E} for a text range. Exactly one destination: url (external) or to_slide (a jump by index or {"slide_id": N}, the structure delete_slide knows how to neuter). tooltip sets hover text. Navigation buttons pair with insert_shape (graphics pack). Saves atomically with two-slot backup; backup=False skips rotation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| slide | Yes | ||
| backup | No | ||
| target | Yes | ||
| tooltip | No | ||
| to_slide | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||