update_site_custom_code
Update site-wide custom CSS, JavaScript, or HTML snippets by specifying only the fields to change. Requires reviewing existing code and user confirmation before applying.
Instructions
Update custom code (CSS/JS) for the entire site. Only sends fields you specify — others remain unchanged. IMPORTANT: Before calling, you MUST read existing code with get_site_custom_code first, then show the user what will change and get explicit confirmation. NEVER update without user approval.
code_before_head: HTML/script inserted before
code_before_body: HTML/script inserted before
code_custom_css: Custom CSS (auto-wrapped in )
code_custom_javascript: Custom JavaScript
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code_custom_css | No | Custom CSS for the site | |
| code_before_body | No | HTML/script to insert before </body> | |
| code_before_head | No | HTML/script to insert in <head> | |
| code_custom_javascript | No | Custom JavaScript for the site |