naftiko: 1.0.0-alpha2 info: label: Daytona Sandbox Legacy Workspace Control description: 'Daytona Sandbox Legacy Workspace Control. 14 operations. Lead operation: [DEPRECATED] List all workspaces. Self-contained Naftiko capability covering one Daytona business surface.' tags: - Daytona - Workspace created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: DAYTONA_API_KEY: DAYTONA_API_KEY capability: consumes: - type: http namespace: sandbox-control baseUri: https://app.daytona.io/api description: Daytona Sandbox Legacy Workspace Control business capability. Self-contained, no shared references. resources: - name: workspace path: /workspace operations: - name: listworkspaces-deprecated method: GET description: '[DEPRECATED] List all workspaces' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createworkspace-deprecated method: POST description: '[DEPRECATED] Create a new workspace' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: workspace-workspaceid path: /workspace/{workspaceId} operations: - name: getworkspace-deprecated method: GET description: '[DEPRECATED] Get workspace details' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deleteworkspace-deprecated method: DELETE description: '[DEPRECATED] Delete workspace' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workspace-workspaceid-start path: /workspace/{workspaceId}/start operations: - name: startworkspace-deprecated method: POST description: '[DEPRECATED] Start workspace' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workspace-workspaceid-stop path: /workspace/{workspaceId}/stop operations: - name: stopworkspace-deprecated method: POST description: '[DEPRECATED] Stop workspace' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workspace-workspaceid-labels path: /workspace/{workspaceId}/labels operations: - name: replacelabelsworkspace-deprecated method: PUT description: '[DEPRECATED] Replace workspace labels' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: workspace-workspaceid-backup path: /workspace/{workspaceId}/backup operations: - name: createbackupworkspace-deprecated method: POST description: '[DEPRECATED] Create workspace backup' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workspace-workspaceid-public-ispublic path: /workspace/{workspaceId}/public/{isPublic} operations: - name: updatepublicstatusworkspace-deprecated method: POST description: '[DEPRECATED] Update public status' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workspace-workspaceid-autostop-interval path: /workspace/{workspaceId}/autostop/{interval} operations: - name: setautostopintervalworkspace-deprecated method: POST description: '[DEPRECATED] Set workspace auto-stop interval' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workspace-workspaceid-autoarchive-interval path: /workspace/{workspaceId}/autoarchive/{interval} operations: - name: setautoarchiveintervalworkspace-deprecated method: POST description: '[DEPRECATED] Set workspace auto-archive interval' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workspace-workspaceid-archive path: /workspace/{workspaceId}/archive operations: - name: archiveworkspace-deprecated method: POST description: '[DEPRECATED] Archive workspace' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workspace-workspaceid-ports-port-preview-url path: /workspace/{workspaceId}/ports/{port}/preview-url operations: - name: getportpreviewurlworkspace-deprecated method: GET description: '[DEPRECATED] Get preview URL for a workspace port' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workspace-workspaceid-build-logs path: /workspace/{workspaceId}/build-logs operations: - name: getbuildlogsworkspace-deprecated method: GET description: '[DEPRECATED] Get build logs' outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer value: '{{env.DAYTONA_API_KEY}}' placement: header exposes: - type: rest namespace: sandbox-control-rest port: 8080 description: REST adapter for Daytona Sandbox Legacy Workspace Control. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/workspace name: workspace description: REST surface for workspace. operations: - method: GET name: listworkspaces-deprecated description: '[DEPRECATED] List all workspaces' call: sandbox-control.listworkspaces-deprecated outputParameters: - type: object mapping: $. - method: POST name: createworkspace-deprecated description: '[DEPRECATED] Create a new workspace' call: sandbox-control.createworkspace-deprecated outputParameters: - type: object mapping: $. with: body: rest.body - path: /v1/workspace/{workspaceId} name: workspace-workspaceid description: REST surface for workspace-workspaceid. operations: - method: GET name: getworkspace-deprecated description: '[DEPRECATED] Get workspace details' call: sandbox-control.getworkspace-deprecated outputParameters: - type: object mapping: $. - method: DELETE name: deleteworkspace-deprecated description: '[DEPRECATED] Delete workspace' call: sandbox-control.deleteworkspace-deprecated outputParameters: - type: object mapping: $. - path: /v1/workspace/{workspaceId}/start name: workspace-workspaceid-start description: REST surface for workspace-workspaceid-start. operations: - method: POST name: startworkspace-deprecated description: '[DEPRECATED] Start workspace' call: sandbox-control.startworkspace-deprecated outputParameters: - type: object mapping: $. - path: /v1/workspace/{workspaceId}/stop name: workspace-workspaceid-stop description: REST surface for workspace-workspaceid-stop. operations: - method: POST name: stopworkspace-deprecated description: '[DEPRECATED] Stop workspace' call: sandbox-control.stopworkspace-deprecated outputParameters: - type: object mapping: $. - path: /v1/workspace/{workspaceId}/labels name: workspace-workspaceid-labels description: REST surface for workspace-workspaceid-labels. operations: - method: PUT name: replacelabelsworkspace-deprecated description: '[DEPRECATED] Replace workspace labels' call: sandbox-control.replacelabelsworkspace-deprecated outputParameters: - type: object mapping: $. with: body: rest.body - path: /v1/workspace/{workspaceId}/backup name: workspace-workspaceid-backup description: REST surface for workspace-workspaceid-backup. operations: - method: POST name: createbackupworkspace-deprecated description: '[DEPRECATED] Create workspace backup' call: sandbox-control.createbackupworkspace-deprecated outputParameters: - type: object mapping: $. - path: /v1/workspace/{workspaceId}/public/{isPublic} name: workspace-workspaceid-public-ispublic description: REST surface for workspace-workspaceid-public-ispublic. operations: - method: POST name: updatepublicstatusworkspace-deprecated description: '[DEPRECATED] Update public status' call: sandbox-control.updatepublicstatusworkspace-deprecated outputParameters: - type: object mapping: $. - path: /v1/workspace/{workspaceId}/autostop/{interval} name: workspace-workspaceid-autostop-interval description: REST surface for workspace-workspaceid-autostop-interval. operations: - method: POST name: setautostopintervalworkspace-deprecated description: '[DEPRECATED] Set workspace auto-stop interval' call: sandbox-control.setautostopintervalworkspace-deprecated outputParameters: - type: object mapping: $. - path: /v1/workspace/{workspaceId}/autoarchive/{interval} name: workspace-workspaceid-autoarchive-interval description: REST surface for workspace-workspaceid-autoarchive-interval. operations: - method: POST name: setautoarchiveintervalworkspace-deprecated description: '[DEPRECATED] Set workspace auto-archive interval' call: sandbox-control.setautoarchiveintervalworkspace-deprecated outputParameters: - type: object mapping: $. - path: /v1/workspace/{workspaceId}/archive name: workspace-workspaceid-archive description: REST surface for workspace-workspaceid-archive. operations: - method: POST name: archiveworkspace-deprecated description: '[DEPRECATED] Archive workspace' call: sandbox-control.archiveworkspace-deprecated outputParameters: - type: object mapping: $. - path: /v1/workspace/{workspaceId}/ports/{port}/preview-url name: workspace-workspaceid-ports-port-preview-url description: REST surface for workspace-workspaceid-ports-port-preview-url. operations: - method: GET name: getportpreviewurlworkspace-deprecated description: '[DEPRECATED] Get preview URL for a workspace port' call: sandbox-control.getportpreviewurlworkspace-deprecated outputParameters: - type: object mapping: $. - path: /v1/workspace/{workspaceId}/build-logs name: workspace-workspaceid-build-logs description: REST surface for workspace-workspaceid-build-logs. operations: - method: GET name: getbuildlogsworkspace-deprecated description: '[DEPRECATED] Get build logs' call: sandbox-control.getbuildlogsworkspace-deprecated outputParameters: - type: object mapping: $. - type: mcp namespace: sandbox-control-mcp port: 9090 transport: http description: MCP adapter for Daytona Sandbox Legacy Workspace Control. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: daytona-deprecated-list-all-workspaces description: '[DEPRECATED] List all workspaces' hints: readOnly: true destructive: false idempotent: true call: sandbox-control.listworkspaces-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-create-a-new-workspace description: '[DEPRECATED] Create a new workspace' hints: readOnly: false destructive: false idempotent: false call: sandbox-control.createworkspace-deprecated outputParameters: - type: object mapping: $. with: body: tools.body - name: daytona-deprecated-get-workspace-details description: '[DEPRECATED] Get workspace details' hints: readOnly: true destructive: false idempotent: true call: sandbox-control.getworkspace-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-delete-workspace description: '[DEPRECATED] Delete workspace' hints: readOnly: false destructive: true idempotent: true call: sandbox-control.deleteworkspace-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-start-workspace description: '[DEPRECATED] Start workspace' hints: readOnly: false destructive: false idempotent: false call: sandbox-control.startworkspace-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-stop-workspace description: '[DEPRECATED] Stop workspace' hints: readOnly: false destructive: false idempotent: false call: sandbox-control.stopworkspace-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-replace-workspace-labels description: '[DEPRECATED] Replace workspace labels' hints: readOnly: false destructive: false idempotent: true call: sandbox-control.replacelabelsworkspace-deprecated outputParameters: - type: object mapping: $. with: body: tools.body - name: daytona-deprecated-create-workspace-backup description: '[DEPRECATED] Create workspace backup' hints: readOnly: false destructive: false idempotent: false call: sandbox-control.createbackupworkspace-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-update-public-status description: '[DEPRECATED] Update public status' hints: readOnly: false destructive: false idempotent: false call: sandbox-control.updatepublicstatusworkspace-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-set-workspace-auto-stop-interval description: '[DEPRECATED] Set workspace auto-stop interval' hints: readOnly: false destructive: false idempotent: false call: sandbox-control.setautostopintervalworkspace-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-set-workspace-auto-archive-interval description: '[DEPRECATED] Set workspace auto-archive interval' hints: readOnly: false destructive: false idempotent: false call: sandbox-control.setautoarchiveintervalworkspace-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-archive-workspace description: '[DEPRECATED] Archive workspace' hints: readOnly: false destructive: false idempotent: false call: sandbox-control.archiveworkspace-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-get-preview-url-for-a-workspace-port description: '[DEPRECATED] Get preview URL for a workspace port' hints: readOnly: true destructive: false idempotent: true call: sandbox-control.getportpreviewurlworkspace-deprecated outputParameters: - type: object mapping: $. - name: daytona-deprecated-get-build-logs description: '[DEPRECATED] Get build logs' hints: readOnly: true destructive: false idempotent: true call: sandbox-control.getbuildlogsworkspace-deprecated outputParameters: - type: object mapping: $.