update_page_source
Update a storefront page's full source JSON. Must first read the existing source and obtain explicit user approval before replacing the entire page.
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 |