Change part of a page
edit_pageChange part of a design that already exists, the way you edit a file: each edit replaces exact text from read_page (it must appear exactly once) with new text. Use it for any change the person asks for in an existing design — a headline, a colour, a picture, moving or removing something — instead of sending the whole page again: everything you do not touch stays as it is, the person's own edits included, and they see the change in their editor at once and can undo it. One page per call, or shared: true for the code every page shares. A refused edit changes nothing and says why. The reply shows the page as it looks now.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Which page to change, 1 first. Leave out only with shared: true. | |
| edits | Yes | Applied in order, all or nothing. | |
| shared | No | true: the edits are to the code every page shares (palette, fonts, helpers), as read_page shows it. Only when the person asks to change the whole design. | |
| deck_id | Yes | ||
| page_id | No | The page_id read_page gave for this page. If the person moved pages since, the edit is refused instead of landing on another page. | |
| summary | No | What you changed, in a few plain words the person sees in their editor, e.g. 'Shortened the headline'. |