Skip to main content
Glama

site_applied_scripts_list

Retrieve all custom scripts applied to a Webflow site to manage and audit site functionality and integrations.

Instructions

Get all scripts applied to a site by the App. To apply a script to a site or page, first register it via the Register Script endpoints, then apply it using the relevant Site or Page endpoints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_idYesUnique identifier for the site.

Implementation Reference

  • The handler function that executes the 'site_applied_scripts_list' tool. It fetches the list of applied scripts (custom code) for a given site ID using the Webflow API client and formats the response.
    async ({ site_id }) => { try { const response = await getClient().sites.scripts.getCustomCode( site_id, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); }
  • The input schema for the tool, defining the required 'site_id' parameter.
    inputSchema: z.object({ site_id: z.string().describe("Unique identifier for the site."), }),
  • The registration of the 'site_applied_scripts_list' tool using McpServer.registerTool, including title, description, input schema, and handler.
    "site_applied_scripts_list", { title: "List Applied Scripts", description: "Get all scripts applied to a site by the App. To apply a script to a site or page, first register it via the Register Script endpoints, then apply it using the relevant Site or Page endpoints.", inputSchema: z.object({ site_id: z.string().describe("Unique identifier for the site."), }), }, async ({ site_id }) => { try { const response = await getClient().sites.scripts.getCustomCode( site_id, requestOptions ); return formatResponse(response); } catch (error) { return formatErrorResponse(error); } } );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/webflow/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server