find_replace_text
Replace a substring in all text nodes on a page or within a selected node. Supports case-sensitive matching.
Instructions
Replace a substring across all TEXT nodes under a scope. Without rootId the whole current page is searched; matching is case-insensitive unless caseSensitive is true. Fonts are loaded before each edit. Returns { ok, affected } — the text node ids changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Substring to find (non-empty) | |
| rootId | No | Optional node id to scope the search (default: page) | |
| replace | Yes | Replacement string | |
| caseSensitive | No | Match case (default false) |