Webflow · Capability

Webflow Custom Code API — Custom Code - Sites

Webflow Custom Code API — Custom Code - Sites. 3 operations. Lead operation: Webflow Get Custom Code. Self-contained Naftiko capability covering one Webflow business surface.

Run with Naftiko WebflowCustom Code - Sites

What You Can Do

GET
Getsitecustomcode — Webflow Get Custom Code
/v1/sites/{site-id}/custom-code
DELETE
Deletesitecustomcode — Webflow Delete Custom Code
/v1/sites/{site-id}/custom-code
PUT
Addcustomcodetosite — Webflow Add/Update Custom Code
/v1/sites/{site-id}/custom-code

MCP Tools

webflow-get-custom-code

Webflow Get Custom Code

read-only idempotent
webflow-delete-custom-code

Webflow Delete Custom Code

idempotent
webflow-add-update-custom-code

Webflow Add/Update Custom Code

idempotent

Capability Spec

custom-code-custom-code-sites.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Webflow Custom Code API — Custom Code - Sites
  description: 'Webflow Custom Code API — Custom Code - Sites. 3 operations. Lead operation: Webflow Get Custom Code. Self-contained
    Naftiko capability covering one Webflow business surface.'
  tags:
  - Webflow
  - Custom Code - Sites
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WEBFLOW_API_KEY: WEBFLOW_API_KEY
capability:
  consumes:
  - type: http
    namespace: custom-code-custom-code-sites
    baseUri: https://api.webflow.com/v2
    description: Webflow Custom Code API — Custom Code - Sites business capability. Self-contained, no shared references.
    resources:
    - name: sites-site_id-custom_code
      path: /sites/{site_id}/custom_code
      operations:
      - name: getsitecustomcode
        method: GET
        description: Webflow Get Custom Code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: site_id
          in: path
          type: string
          description: Unique identifier for a Site
          required: true
      - name: deletesitecustomcode
        method: DELETE
        description: Webflow Delete Custom Code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: site_id
          in: path
          type: string
          description: Unique identifier for a Site
          required: true
      - name: addcustomcodetosite
        method: PUT
        description: Webflow Add/Update Custom Code
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: site_id
          in: path
          type: string
          description: Unique identifier for a Site
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.WEBFLOW_API_KEY}}'
  exposes:
  - type: rest
    namespace: custom-code-custom-code-sites-rest
    port: 8080
    description: REST adapter for Webflow Custom Code API — Custom Code - Sites. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/sites/{site-id}/custom-code
      name: sites-site-id-custom-code
      description: REST surface for sites-site_id-custom_code.
      operations:
      - method: GET
        name: getsitecustomcode
        description: Webflow Get Custom Code
        call: custom-code-custom-code-sites.getsitecustomcode
        with:
          site_id: rest.site_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesitecustomcode
        description: Webflow Delete Custom Code
        call: custom-code-custom-code-sites.deletesitecustomcode
        with:
          site_id: rest.site_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: addcustomcodetosite
        description: Webflow Add/Update Custom Code
        call: custom-code-custom-code-sites.addcustomcodetosite
        with:
          site_id: rest.site_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: custom-code-custom-code-sites-mcp
    port: 9090
    transport: http
    description: MCP adapter for Webflow Custom Code API — Custom Code - Sites. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: webflow-get-custom-code
      description: Webflow Get Custom Code
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: custom-code-custom-code-sites.getsitecustomcode
      with:
        site_id: tools.site_id
      outputParameters:
      - type: object
        mapping: $.
    - name: webflow-delete-custom-code
      description: Webflow Delete Custom Code
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: custom-code-custom-code-sites.deletesitecustomcode
      with:
        site_id: tools.site_id
      outputParameters:
      - type: object
        mapping: $.
    - name: webflow-add-update-custom-code
      description: Webflow Add/Update Custom Code
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: custom-code-custom-code-sites.addcustomcodetosite
      with:
        site_id: tools.site_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.