Find and replace text
visio_replace_textReplace a substring in shape text across a Visio document, optionally restricted to a specific page and with case-sensitive matching.
Instructions
Replace a substring in the text of every shape that contains it.
Args: find: Substring to look for. replace: Replacement text. page: Restrict to one page. Omit to cover every page. document: File name or 1-based index. Omit for the active document. match_case: Match case exactly instead of ignoring it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| page | No | ||
| replace | Yes | ||
| document | No | ||
| match_case | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| page | No | ||
| action | Yes | ||
| detail | Yes | ||
| affected | No | ||
| document | No | ||
| shape_id | No |