Edit text
edit_textChange the text of one element on a page. Match it by tag and its exact current text (copy both from get_page_text). The change is saved to the site's draft — visible in the editor immediately, live only after publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Element tag from get_page_text, e.g. "h1", "p", "a" | |
| route | Yes | The page you read the text from | |
| scope | No | "site" (default) changes this text wherever it appears — right for headers and footers. "page" limits the change to this route. | |
| siteId | Yes | ||
| newText | Yes | The replacement text | |
| oldText | Yes | The element's current text, exactly as get_page_text returned it |