Adobe Illustrator · Capability

Adobe Illustrator Scripting API — Layers

Adobe Illustrator Scripting API — Layers. 5 operations. Lead operation: Adobe Illustrator List Layers in a Document. Self-contained Naftiko capability covering one Adobe Illustrator business surface.

Run with Naftiko Adobe IllustratorLayers

What You Can Do

GET
Listlayers — Adobe Illustrator List Layers in a Document
/v1/documents/{documentid}/layers
POST
Createlayer — Adobe Illustrator Create a New Layer
/v1/documents/{documentid}/layers
GET
Getlayer — Adobe Illustrator Get a Layer
/v1/documents/{documentid}/layers/{layerid}
PUT
Updatelayer — Adobe Illustrator Update a Layer
/v1/documents/{documentid}/layers/{layerid}
DELETE
Deletelayer — Adobe Illustrator Delete a Layer
/v1/documents/{documentid}/layers/{layerid}

MCP Tools

adobe-illustrator-list-layers-document

Adobe Illustrator List Layers in a Document

read-only idempotent
adobe-illustrator-create-new-layer

Adobe Illustrator Create a New Layer

adobe-illustrator-get-layer

Adobe Illustrator Get a Layer

read-only idempotent
adobe-illustrator-update-layer

Adobe Illustrator Update a Layer

idempotent
adobe-illustrator-delete-layer

Adobe Illustrator Delete a Layer

idempotent

Capability Spec

scripting-layers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Adobe Illustrator Scripting API — Layers
  description: 'Adobe Illustrator Scripting API — Layers. 5 operations. Lead operation: Adobe Illustrator List Layers in a
    Document. Self-contained Naftiko capability covering one Adobe Illustrator business surface.'
  tags:
  - Adobe Illustrator
  - Layers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ADOBE_ILLUSTRATOR_API_KEY: ADOBE_ILLUSTRATOR_API_KEY
capability:
  consumes:
  - type: http
    namespace: scripting-layers
    baseUri: https://localhost
    description: Adobe Illustrator Scripting API — Layers business capability. Self-contained, no shared references.
    resources:
    - name: documents-documentId-layers
      path: /documents/{documentId}/layers
      operations:
      - name: listlayers
        method: GET
        description: Adobe Illustrator List Layers in a Document
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createlayer
        method: POST
        description: Adobe Illustrator Create a New Layer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: documents-documentId-layers-layerId
      path: /documents/{documentId}/layers/{layerId}
      operations:
      - name: getlayer
        method: GET
        description: Adobe Illustrator Get a Layer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatelayer
        method: PUT
        description: Adobe Illustrator Update a Layer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletelayer
        method: DELETE
        description: Adobe Illustrator Delete a Layer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: scripting-layers-rest
    port: 8080
    description: REST adapter for Adobe Illustrator Scripting API — Layers. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/documents/{documentid}/layers
      name: documents-documentid-layers
      description: REST surface for documents-documentId-layers.
      operations:
      - method: GET
        name: listlayers
        description: Adobe Illustrator List Layers in a Document
        call: scripting-layers.listlayers
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createlayer
        description: Adobe Illustrator Create a New Layer
        call: scripting-layers.createlayer
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/documents/{documentid}/layers/{layerid}
      name: documents-documentid-layers-layerid
      description: REST surface for documents-documentId-layers-layerId.
      operations:
      - method: GET
        name: getlayer
        description: Adobe Illustrator Get a Layer
        call: scripting-layers.getlayer
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatelayer
        description: Adobe Illustrator Update a Layer
        call: scripting-layers.updatelayer
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelayer
        description: Adobe Illustrator Delete a Layer
        call: scripting-layers.deletelayer
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: scripting-layers-mcp
    port: 9090
    transport: http
    description: MCP adapter for Adobe Illustrator Scripting API — Layers. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: adobe-illustrator-list-layers-document
      description: Adobe Illustrator List Layers in a Document
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: scripting-layers.listlayers
      outputParameters:
      - type: object
        mapping: $.
    - name: adobe-illustrator-create-new-layer
      description: Adobe Illustrator Create a New Layer
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: scripting-layers.createlayer
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: adobe-illustrator-get-layer
      description: Adobe Illustrator Get a Layer
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: scripting-layers.getlayer
      outputParameters:
      - type: object
        mapping: $.
    - name: adobe-illustrator-update-layer
      description: Adobe Illustrator Update a Layer
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: scripting-layers.updatelayer
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: adobe-illustrator-delete-layer
      description: Adobe Illustrator Delete a Layer
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: scripting-layers.deletelayer
      outputParameters:
      - type: object
        mapping: $.