npx skills add ...
npx skills add webflow/webflow-skills --skill custom-code-management
npx skills add webflow/webflow-skills --skill custom-code-management
Add, review, or remove inline custom scripts on a Webflow site (up to 10,000 chars). Use for analytics, tracking pixels, chat widgets, or any custom JavaScript. Also manages page-level scripts.
Add, review, and manage inline custom scripts on a Webflow site — analytics, tracking pixels, chat widgets, or any custom JavaScript.
ALWAYS use Webflow MCP tools for all operations:
webflow_guide_tool to get best practices before any other tool calldata_sites_tool with action list_sites to identify available sitesdata_scripts_tool with action list_registered_scripts to list all registered scriptsdata_scripts_tool with action list_applied_scripts to list scripts applied to pagesdata_scripts_tool with action add_inline_site_script to register a new inline scriptdata_scripts_tool with action delete_all_site_scripts to remove ALL site scripts (no selective delete)data_scripts_tool with action get_page_script to get custom code for a specific pagedata_scripts_tool with action upsert_page_script to add or update page-level custom codedata_scripts_tool with action delete_all_page_scripts to remove all custom code from a pagecontext parameter (15-25 words, third-person perspective)webflow_guide_tool first — always the first MCP tool calldata_sites_tool with action list_sites. If only one site, use it automatically.list_registered_scripts and list_applied_scripts in parallelget_page_script for specific pagesBefore any mutation, present the plan and require explicit confirmation:
add_inline_site_script with displayName, sourceCode, version, location, canCopydelete_all_site_scriptsupsert_page_scriptdelete_all_page_scriptssafe-publish skillUser: "What scripts are on my site?"
webflow_guide_tool → data_sites_tool → list_registered_scripts + list_applied_scripts in parallelUser: "Add GTM to my site"
webflow_guide_tool → data_sites_tool → ask for GTM container IDadd_inline_site_script (header, version "1.0.0")User: "Remove all scripts"
webflow_guide_tool → data_sites_tool → list current scriptsdelete_all_site_scriptsUser: "Add conversion tracking to my thank-you page"
webflow_guide_tool → data_sites_tool → get_page_script to check existingupsert_page_scriptwebflow_guide_tool always first — before any other MCP tool<script> tags — Webflow adds them automaticallydisplayName + version must be uniqueadd_inline_site_script) apply to all pages; page-level scripts (upsert_page_script) apply to one pagedelete_all_site_scripts removes everything; always list scripts first so user knows what will be lostdisplayName + version exists, suggest incrementing the version