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.
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": {
"siteId": "<siteId>",
"route": "<route>",
"tag": "<tag>",
"oldText": "<oldText>",
"newText": "<newText>"
},
"name": "edit_text"
}
}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 |