Find and Replace in Document
find_and_replaceFind and replace text in document paragraphs, headings, and titles. Preview changes with dry run mode.
Instructions
Find and replace text across all Y.Text fields in a document (paragraphs, headings, titles). matchAll defaults to true. Use dryRun=true to preview before applying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | ||
| docId | Yes | The doc to search in. | |
| search | Yes | Text to find (must not be empty). | |
| replace | Yes | Replacement text. | |
| matchAll | No | Replace all occurrences (default: true). | |
| dryRun | No | If true, only report matches without replacing (default: false). |