Viam · Capability

Viam Component — Sensor

Read the latest measurements from any Viam generic sensor component.

Viam Component — Sensor is a Naftiko capability published by Viam, one of 27 capabilities the APIs.io network indexes for this provider. It bundles 1 operation.

The capability includes 1 read-only operation. Lead operation: Read sensor measurements. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Viam, Component, and Sensor.

Run with Naftiko ViamComponentSensor

MCP Tools

viam-sensor-readings

Read sensor measurements.

read-only idempotent

Capability Spec

component-sensor.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Viam Component — Sensor
  description: Read the latest measurements from any Viam generic sensor component.
  tags: [Viam, Component, Sensor]
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    VIAM_API_KEY: VIAM_API_KEY
    VIAM_MACHINE_ADDRESS: VIAM_MACHINE_ADDRESS
capability:
  consumes:
  - type: http
    namespace: component-sensor
    baseUri: '{{env.VIAM_MACHINE_ADDRESS}}'
    description: Viam SensorService.
    resources:
    - name: get-readings
      path: /viam.component.sensor.v1.SensorService/GetReadings
      operations:
      - { name: getReadings, method: POST, description: Read latest sensor measurements., outputRawFormat: json, inputParameters: [{ name: body, in: body, type: object, required: true }] }
    authentication:
      type: apikey
      key: key
      value: '{{env.VIAM_API_KEY}}'
      placement: header
  exposes:
  - type: mcp
    namespace: component-sensor-mcp
    port: 9090
    transport: http
    description: MCP adapter for sensor components.
    tools:
    - { name: viam-sensor-readings, description: Read sensor measurements., hints: { readOnly: true, destructive: false, idempotent: true }, call: component-sensor.getReadings, with: { body: tools.body } }