update_page_source
Replace a page's entire source JSON after confirming changes with the user; blocks if new source is less than 50% of existing size to prevent data loss.
Instructions
Directly update the full page source JSON. IMPORTANT: Before calling this tool, you MUST:
Read existing source with get_page_source first
Show the user what will change and get explicit confirmation
NEVER call without user approval — this replaces the ENTIRE page source Safeguarded: blocks if new source is <50% of existing size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Full page source object (sections tree) or JSON string | |
| page_id | Yes | Page ID | |
| custom_code | No | Custom code (CSS/JS) for this page |