Skip to main content
Glama

obsbot_aim_at_pixel

Aims the OBSBOT camera at a specific pixel from a captured snapshot using x/y coordinates and that frame's width and height to center the target.

Instructions

Point the camera at a specific pixel in a frame you just captured. Give the pixel's x/y and the frameWidth/frameHeight from THE SAME obsbot_capture_snapshot result — mixing a pixel from one frame with dimensions from another aims at the wrong place and cannot be detected. source DECLARES which feed the frame came from (default device); it cannot be inferred from the pixels. A virtual or ndi frame is accepted, but only aims correctly if that feed is an unmodified pass-through of the camera — a compositor's rescale or letterbox is invisible in the picture and silently wrong here — so a non-device declaration comes back with that assumption stated. Takes no field-of-view or zoom argument: it reads the camera's magnification from its reported state, a discrete FOV mode or a continuous zoom alike, so it works at any zoom. Refuses when AI tracking is active (tracking moves the gimbal itself and would fight the aim), when the FOV mode can't be decoded, or when a corrupt zoom reading would resolve to an implausible magnification, so it never aims on an assumption it cannot check. If the camera was asleep, waking it moves the gimbal and invalidates the frame you measured, so the call refuses instead of aiming on stale geometry — take a fresh snapshot and retry. Returns clamped:true if the target was outside the gimbal's range; the camera still moves, to the nearest reachable pose. Refuses (ok:false) instead of moving when the pixel lies past vertical from the current pose — reachable only by an "over the top" rotation that would swing the camera toward the opposite side of the room, not toward the target; tilt toward the pixel first, then re-aim.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "x": "<x>",
      "y": "<y>",
      "frameWidth": "<frameWidth>",
      "frameHeight": "<frameHeight>"
    },
    "name": "obsbot_aim_at_pixel"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
cameraNo
sourceNodevice
frameWidthYes
frameHeightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.9.6
    • removedInput schema / properties / frameHeight / allOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "minimum": 1,
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / frameHeight / minimum
      Added value: +1
    • addedInput schema / properties / frameHeight / type
      Added value: +"number"
    • removedInput schema / properties / frameWidth / allOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "minimum": 1,
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / frameWidth / minimum
      Added value: +1
    • addedInput schema / properties / frameWidth / type
      Added value: +"number"
    • removedInput schema / properties / x / allOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / x / type
      Added value: +"number"
    • removedInput schema / properties / y / allOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / y / type
      Added value: +"number"
  2. Addedv0.7.0

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations at all, the description carries the full burden and does so thoroughly: it discloses refusal conditions (AI tracking active, undecodable FOV mode, implausible zoom reading, sleeping camera with stale geometry, past-vertical target), the clamped:true/ok:false outcomes, and the consequence of each (camera still moves to the nearest reachable pose). It also explains that non-device sources come back with the pass-through assumption stated, which is behavior an agent cannot infer from the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core instruction is front-loaded in the first two sentences, and nearly every sentence carries a distinct failure mode rather than filler. It is a single dense paragraph of em-dash clauses with some repetition of the 'silently wrong / cannot be detected' theme, which makes it heavier to parse than its content requires.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter mutation tool with no annotations and no output schema, the description covers prerequisites, failure modes, and partial return semantics (clamped, ok:false), which is nearly everything an agent needs. The one real hole is the undocumented `camera` parameter for selecting among multiple devices.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does for five of six parameters: x/y as pixel coordinates, frameWidth/frameHeight as values that must originate from the same snapshot, and source as an explicit declaration (default device, not inferable from pixels) with virtual/ndi caveats. The `camera` parameter is never mentioned, leaving one of six undocumented in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a precise verb+resource: point the camera at a specific pixel in a frame just captured. This is clearly distinct from angle-based siblings like obsbot_gimbal_move or obsbot_tail2_gimbal_move, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is concrete: it must follow a capture, x/y and frameWidth/frameHeight must come from the same obsbot_capture_snapshot result, and the caller should tilt toward the pixel first and re-aim when the target is past vertical. It stops short of naming alternative tools (e.g. gimbal_move for absolute angles) or stating when not to use pixel aiming at all.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools