Freestyle · Capability

Freestyle VMs API — Terminals

Freestyle VMs API terminals surface. 3 operations. Lead operation: list_terminals. Self-contained Naftiko capability for one Freestyle business surface.

Freestyle VMs API — Terminals is a Naftiko capability published by Freestyle, one of 30 capabilities the APIs.io network indexes for this provider. It bundles 3 operations across the GET method rooted at /v1/v1/vms/{…}/terminals.

The capability includes 3 read-only operations. Lead operation: list-terminals. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Freestyle, VM, and Terminals.

Run with Naftiko FreestyleVMTerminals

What You Can Do

GET
List terminals — list-terminals
/v1/v1/vms/{vm_id}/terminals
GET
Get terminal logs — get-terminal-logs
/v1/v1/vms/{vm_id}/terminals/{terminal_id}/logs
GET
Get terminal xterm — get-terminal-xterm
/v1/v1/vms/{vm_id}/terminals/{terminal_id}/xterm-256color

MCP Tools

freestyle-list-terminals

list-terminals

read-only idempotent
freestyle-get-terminal-logs

get-terminal-logs

read-only idempotent
freestyle-get-terminal-xterm

get-terminal-xterm

read-only idempotent

Capability Spec

vm-terminals.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: "Freestyle VMs API \u2014 Terminals"
  description: 'Freestyle VMs API terminals surface. 3 operations. Lead operation: list_terminals. Self-contained Naftiko
    capability for one Freestyle business surface.'
  tags:
  - Freestyle
  - VM
  - Terminals
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    FREESTYLE_API_KEY: FREESTYLE_API_KEY
capability:
  consumes:
  - type: http
    namespace: vm-terminals
    baseUri: https://api.freestyle.sh
    description: Freestyle VMs API terminals business capability.
    resources:
    - name: v1-vms-terminals
      path: /v1/vms/{vm_id}/terminals
      operations:
      - name: list-terminals
        method: GET
        description: list_terminals
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: vm_id
          in: path
          type: string
          required: true
    - name: v1-vms-terminals-logs
      path: /v1/vms/{vm_id}/terminals/{terminal_id}/logs
      operations:
      - name: get-terminal-logs
        method: GET
        description: get_terminal_logs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: vm_id
          in: path
          type: string
          required: true
        - name: terminal_id
          in: path
          type: string
          required: true
    - name: v1-vms-terminals-xterm-256color
      path: /v1/vms/{vm_id}/terminals/{terminal_id}/xterm-256color
      operations:
      - name: get-terminal-xterm
        method: GET
        description: get_terminal_xterm
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: vm_id
          in: path
          type: string
          required: true
        - name: terminal_id
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: Bearer {{env.FREESTYLE_API_KEY}}
      placement: header
  exposes:
  - type: rest
    namespace: vm-terminals-rest
    port: 8080
    description: REST adapter for Freestyle VMs API terminals. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/vms/{vm_id}/terminals
      name: v1-vms-terminals
      description: REST surface for v1-vms-terminals.
      operations:
      - method: GET
        name: list-terminals
        description: list-terminals
        call: vm-terminals.list-terminals
        with:
          vm_id: rest.path.vm_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/vms/{vm_id}/terminals/{terminal_id}/logs
      name: v1-vms-terminals-logs
      description: REST surface for v1-vms-terminals-logs.
      operations:
      - method: GET
        name: get-terminal-logs
        description: get-terminal-logs
        call: vm-terminals.get-terminal-logs
        with:
          vm_id: rest.path.vm_id
          terminal_id: rest.path.terminal_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/vms/{vm_id}/terminals/{terminal_id}/xterm-256color
      name: v1-vms-terminals-xterm-256color
      description: REST surface for v1-vms-terminals-xterm-256color.
      operations:
      - method: GET
        name: get-terminal-xterm
        description: get-terminal-xterm
        call: vm-terminals.get-terminal-xterm
        with:
          vm_id: rest.path.vm_id
          terminal_id: rest.path.terminal_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: vm-terminals-mcp
    port: 9090
    transport: http
    description: MCP adapter for Freestyle VMs API terminals. One tool per consumed operation.
    tools:
    - name: freestyle-list-terminals
      description: list-terminals
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vm-terminals.list-terminals
      with:
        vm_id: tools.path.vm_id
      outputParameters:
      - type: object
        mapping: $.
    - name: freestyle-get-terminal-logs
      description: get-terminal-logs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vm-terminals.get-terminal-logs
      with:
        vm_id: tools.path.vm_id
        terminal_id: tools.path.terminal_id
      outputParameters:
      - type: object
        mapping: $.
    - name: freestyle-get-terminal-xterm
      description: get-terminal-xterm
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vm-terminals.get-terminal-xterm
      with:
        vm_id: tools.path.vm_id
        terminal_id: tools.path.terminal_id
      outputParameters:
      - type: object
        mapping: $.