Appium · Capability

Appium Server API — Appium Session

Appium Server API — Appium Session. 5 operations. Lead operation: Appium Get Session Settings. Self-contained Naftiko capability covering one Appium business surface.

Run with Naftiko AppiumAppium Session

What You Can Do

GET
Getsettings — Appium Get Session Settings
/v1/session/{sessionid}/appium/settings
POST
Updatesettings — Appium Update Session Settings
/v1/session/{sessionid}/appium/settings
GET
Getcurrentcontext — Appium Get Current Context
/v1/session/{sessionid}/context
POST
Setcontext — Appium Set Context
/v1/session/{sessionid}/context
GET
Getcontexts — Appium Get Available Contexts
/v1/session/{sessionid}/contexts

MCP Tools

appium-get-session-settings

Appium Get Session Settings

read-only idempotent
appium-update-session-settings

Appium Update Session Settings

appium-get-current-context

Appium Get Current Context

read-only idempotent
appium-set-context

Appium Set Context

appium-get-available-contexts

Appium Get Available Contexts

read-only idempotent

Capability Spec

server-appium-session.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Appium Server API — Appium Session
  description: 'Appium Server API — Appium Session. 5 operations. Lead operation: Appium Get Session Settings. Self-contained
    Naftiko capability covering one Appium business surface.'
  tags:
  - Appium
  - Appium Session
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APPIUM_API_KEY: APPIUM_API_KEY
capability:
  consumes:
  - type: http
    namespace: server-appium-session
    baseUri: http://localhost:4723
    description: Appium Server API — Appium Session business capability. Self-contained, no shared references.
    resources:
    - name: session-sessionId-appium-settings
      path: /session/{sessionId}/appium/settings
      operations:
      - name: getsettings
        method: GET
        description: Appium Get Session Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatesettings
        method: POST
        description: Appium Update Session Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: session-sessionId-context
      path: /session/{sessionId}/context
      operations:
      - name: getcurrentcontext
        method: GET
        description: Appium Get Current Context
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setcontext
        method: POST
        description: Appium Set Context
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: session-sessionId-contexts
      path: /session/{sessionId}/contexts
      operations:
      - name: getcontexts
        method: GET
        description: Appium Get Available Contexts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: server-appium-session-rest
    port: 8080
    description: REST adapter for Appium Server API — Appium Session. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/session/{sessionid}/appium/settings
      name: session-sessionid-appium-settings
      description: REST surface for session-sessionId-appium-settings.
      operations:
      - method: GET
        name: getsettings
        description: Appium Get Session Settings
        call: server-appium-session.getsettings
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: updatesettings
        description: Appium Update Session Settings
        call: server-appium-session.updatesettings
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/session/{sessionid}/context
      name: session-sessionid-context
      description: REST surface for session-sessionId-context.
      operations:
      - method: GET
        name: getcurrentcontext
        description: Appium Get Current Context
        call: server-appium-session.getcurrentcontext
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: setcontext
        description: Appium Set Context
        call: server-appium-session.setcontext
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/session/{sessionid}/contexts
      name: session-sessionid-contexts
      description: REST surface for session-sessionId-contexts.
      operations:
      - method: GET
        name: getcontexts
        description: Appium Get Available Contexts
        call: server-appium-session.getcontexts
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: server-appium-session-mcp
    port: 9090
    transport: http
    description: MCP adapter for Appium Server API — Appium Session. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: appium-get-session-settings
      description: Appium Get Session Settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: server-appium-session.getsettings
      outputParameters:
      - type: object
        mapping: $.
    - name: appium-update-session-settings
      description: Appium Update Session Settings
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: server-appium-session.updatesettings
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: appium-get-current-context
      description: Appium Get Current Context
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: server-appium-session.getcurrentcontext
      outputParameters:
      - type: object
        mapping: $.
    - name: appium-set-context
      description: Appium Set Context
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: server-appium-session.setcontext
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: appium-get-available-contexts
      description: Appium Get Available Contexts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: server-appium-session.getcontexts
      outputParameters:
      - type: object
        mapping: $.