Unity · Capability

Unity Cloud Code API — Executions

Unity Cloud Code API — Executions. 1 operations. Lead operation: Run Script. Self-contained Naftiko capability covering one Unity business surface.

Run with Naftiko UnityExecutions

What You Can Do

POST
Runscript — Run Script
/v1/v1/projects/{projectid}/scripts/{scriptname}/run

MCP Tools

run-script

Run Script

Capability Spec

cloud-code-executions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Unity Cloud Code API — Executions
  description: 'Unity Cloud Code API — Executions. 1 operations. Lead operation: Run Script. Self-contained Naftiko capability
    covering one Unity business surface.'
  tags:
  - Unity
  - Executions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNITY_API_KEY: UNITY_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-code-executions
    baseUri: https://cloud-code.services.api.unity.com
    description: Unity Cloud Code API — Executions business capability. Self-contained, no shared references.
    resources:
    - name: v1-projects-projectId-scripts-scriptName-run
      path: /v1/projects/{projectId}/scripts/{scriptName}/run
      operations:
      - name: runscript
        method: POST
        description: Run Script
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: scriptName
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.UNITY_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-code-executions-rest
    port: 8080
    description: REST adapter for Unity Cloud Code API — Executions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/projects/{projectid}/scripts/{scriptname}/run
      name: v1-projects-projectid-scripts-scriptname-run
      description: REST surface for v1-projects-projectId-scripts-scriptName-run.
      operations:
      - method: POST
        name: runscript
        description: Run Script
        call: cloud-code-executions.runscript
        with:
          projectId: rest.projectId
          scriptName: rest.scriptName
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-code-executions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Unity Cloud Code API — Executions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: run-script
      description: Run Script
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-code-executions.runscript
      with:
        projectId: tools.projectId
        scriptName: tools.scriptName
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.