Skip to main content
Glama

Move, Scale, Rotate or Crop a Source

obs_set_scene_item_transform
Idempotent

Change the position, scale, rotation, or crop of one source in a specific OBS scene, modifying only provided fields and returning the resulting transform.

Instructions

Change the position, scale, rotation or crop of one source in one scene. Only the fields given are changed. Positions and crops are in canvas pixels (see obs_get_video_settings for the canvas size). Returns the resulting transform.

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": {
      "scene_name": "<scene_name>"
    },
    "name": "obs_set_scene_item_transform"
  }
}

Input Schema

NameRequiredDescriptionDefault
scale_xNoHorizontal scale; 1 is the source's native width
scale_yNoVertical scale; 1 is the source's native height
crop_topNoPixels cropped from the top of the source
rotationNoClockwise rotation in degrees
crop_leftNoPixels cropped from the left of the source
crop_rightNoPixels cropped from the right of the source
position_xNoLeft edge on the canvas, in pixels
position_yNoTop edge on the canvas, in pixels
scene_nameYesExact scene name, as returned by obs_list_scenes
crop_bottomNoPixels cropped from the bottom of the source
source_nameNoSource name, used to look the item up when scene_item_id is not given
scene_item_idNoScene item id from obs_list_scene_items. Takes precedence over source_name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-readOnly, idempotent, non-destructive mutation; the description adds genuinely new behavior on top: merge/patch semantics ('only the fields given are changed'), the coordinate system in which inputs are interpreted, and the fact that it returns the resulting transform. No auth or error behavior is disclosed, but nothing contradicts the annotations.

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

Conciseness5/5

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

Three short sentences, front-loaded with the action and scope, then the partial-update rule, then units and the return value. No filler and no repetition of the title's wording.

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 12-parameter mutation with no output schema, the description supplies the essentials: what is mutated, that unspecified fields are preserved, unit semantics, and that a transform is returned. It does not sketch the returned transform's shape or describe failure modes (e.g. unknown scene or item), which is the remaining gap.

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

Parameters3/5

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

Schema description coverage is 100%, so every one of the 12 parameters is already documented, including units and the scene_item_id-precedence-over-source_name rule. The description only adds the framing that positions and crops live in canvas pixels and where to look up the canvas size, which is marginal on top of an already-complete schema. Baseline 3 is appropriate.

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 description names a specific verb and resource ('Change the position, scale, rotation or crop of one source in one scene') and enumerates exactly which properties are mutated, which is far more precise than the title alone. It never explicitly contrasts itself with adjacent scene-item tools such as obs_set_scene_item_enabled or obs_remove_scene_item, but the scope ('one source in one scene') is unambiguous.

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?

'Only the fields given are changed' tells the agent this is a partial patch, so omitting a field preserves it — a real usage rule. The pointer to obs_get_video_settings for the canvas size gives the agent what it needs to compute valid position/crop values. No when-not-to-use cases or exclusions are stated, which keeps it at 4.

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