Langfuse · Capability

langfuse — Media

langfuse — Media. 3 operations. Lead operation: Media. Self-contained Naftiko capability covering one Langfuse business surface.

Run with Naftiko LangfuseMedia

What You Can Do

POST
Mediagetuploadurl — Get a presigned upload URL for a media record
/v1/api/public/media
GET
Mediaget — Get a media record
/v1/api/public/media/{mediaid}
PATCH
Mediapatch — Patch a media record
/v1/api/public/media/{mediaid}

MCP Tools

get-presigned-upload-url-media

Get a presigned upload URL for a media record

read-only
get-media-record

Get a media record

read-only idempotent
patch-media-record

Patch a media record

idempotent

Capability Spec

langfuse-media.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: langfuse — Media
  description: 'langfuse — Media. 3 operations. Lead operation: Media. Self-contained Naftiko capability covering one Langfuse
    business surface.'
  tags:
  - Langfuse
  - Media
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LANGFUSE_API_KEY: LANGFUSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: langfuse-media
    baseUri: ''
    description: langfuse — Media business capability. Self-contained, no shared references.
    resources:
    - name: api-public-media
      path: /api/public/media
      operations:
      - name: mediagetuploadurl
        method: POST
        description: Get a presigned upload URL for a media record
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-public-media-mediaId
      path: /api/public/media/{mediaId}
      operations:
      - name: mediaget
        method: GET
        description: Get a media record
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: mediaId
          in: path
          type: string
          description: The unique langfuse identifier of a media record
          required: true
      - name: mediapatch
        method: PATCH
        description: Patch a media record
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: mediaId
          in: path
          type: string
          description: The unique langfuse identifier of a media record
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.LANGFUSE_USER}}'
      password: '{{env.LANGFUSE_PASS}}'
  exposes:
  - type: rest
    namespace: langfuse-media-rest
    port: 8080
    description: REST adapter for langfuse — Media. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/public/media
      name: api-public-media
      description: REST surface for api-public-media.
      operations:
      - method: POST
        name: mediagetuploadurl
        description: Get a presigned upload URL for a media record
        call: langfuse-media.mediagetuploadurl
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/public/media/{mediaid}
      name: api-public-media-mediaid
      description: REST surface for api-public-media-mediaId.
      operations:
      - method: GET
        name: mediaget
        description: Get a media record
        call: langfuse-media.mediaget
        with:
          mediaId: rest.mediaId
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: mediapatch
        description: Patch a media record
        call: langfuse-media.mediapatch
        with:
          mediaId: rest.mediaId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: langfuse-media-mcp
    port: 9090
    transport: http
    description: MCP adapter for langfuse — Media. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-presigned-upload-url-media
      description: Get a presigned upload URL for a media record
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: langfuse-media.mediagetuploadurl
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-media-record
      description: Get a media record
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: langfuse-media.mediaget
      with:
        mediaId: tools.mediaId
      outputParameters:
      - type: object
        mapping: $.
    - name: patch-media-record
      description: Patch a media record
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: langfuse-media.mediapatch
      with:
        mediaId: tools.mediaId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.