custom-code-management
Original:🇺🇸 English
Translated
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.
3installs
Sourcewebflow/webflow-skills
Added on
NPX Install
npx skill4agent add webflow/webflow-skills custom-code-managementTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Custom Code Management
Concepts
Webflow custom code: register (store script) → apply (attach to site). Inline scripts only via MCP (max 10,000 chars).
Important note
ALWAYS use Webflow MCP tools for all operations:
Use the following tools for all operations:
- with actions
data_scripts_tool/list_registered_scripts- List scriptslist_applied_scripts - with action
data_scripts_tool- Register inline script (noadd_inline_site_scripttags)<script> - with action
data_scripts_tool- Remove ALL scripts (no selective delete)delete_all_site_scripts - with action
data_sites_tool- List available siteslist_sites
Instructions
View Scripts
- Call with action
data_sites_toolif needed, then call both list tools in parallellist_sites - Display registration and application status
Add Script
- Gather: name, code, location (header/footer)
- Validate: under 10,000 chars, no tags
<script> - Preview with character count, require "add" to confirm
- Call with action
data_scripts_toolwith displayName, sourceCode, version, location, canCopyadd_inline_site_script - Remind user to publish
Remove Scripts
- List current scripts
- Warn: removes ALL scripts (no selective delete)
- Require "delete all" to confirm
- Remind user to publish
Constraints
- Max 10,000 characters per script
- Do NOT include tags (Webflow adds them)
<script> - displayName + version must be unique
- Site-level only (no page-specific via MCP)
- Hosted scripts not available via MCP
Response Format
After adding a script, respond with the script name, location, and version. Suggest using the skill to publish changes.
safe-publish