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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"find": "<find>",
"replace": "<replace>"
},
"name": "visio_replace_text"
}
}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 |