Skip to main content
Glama
threejs-devtools-mcp

threejs-devtools-mcp

by DmitriyGolub

set_texture

Idempotent

Adjust a Three.js texture's sampling and transform in the live browser scene: wrap, filter, anisotropy, repeat, offset, rotation, colorSpace. Changes are tracked and revertible.

Instructions

[LIVE PREVIEW] Changes the scene in the browser only — NOT saved to source code, lost on reload. Recorded in pending_changes (→ code edits) and undoable with revert_changes. Change texture sampling and transform: wrap, filter, anisotropy, repeat, offset, rotation, colorSpace.

Input Schema

NameRequiredDescriptionDefault
nameNoTexture name
uuidNoTexture UUID
flipYNo
wrapSNo1000=Repeat, 1001=ClampToEdge, 1002=MirroredRepeat
wrapTNoSame values as wrapS
offsetNo[x, y] offset
repeatNo[x, y] repeat
rotationNoRadians
magFilterNo1003=Nearest, 1006=Linear
minFilterNo1003=Nearest, 1006=Linear, 1008=LinearMipmapLinear
anisotropyNo1-16
colorSpaceNosrgb, srgb-linear

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.5.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / anisotropy / description
      Previous value: -"Anisotropic filtering level (1-16)"New value: +"1-16"
    • changedInput schema / properties / colorSpace / description
      Previous value: -"Color space (srgb, srgb-linear)"New value: +"srgb, srgb-linear"
    • removedInput schema / properties / flipY / description
      Removed value: -"Flip texture vertically"
    • changedInput schema / properties / magFilter / description
      Previous value: -"Mag filter (1003=Nearest, 1006=Linear)"New value: +"1003=Nearest, 1006=Linear"
    • changedInput schema / properties / minFilter / description
      Previous value: -"Min filter (1003=Nearest, 1006=Linear, 1008=LinearMipmapLinear)"New value: +"1003=Nearest, 1006=Linear, 1008=LinearMipmapLinear"
    • changedInput schema / properties / rotation / description
      Previous value: -"Rotation in radians"New value: +"Radians"
    • changedInput schema / properties / wrapS / description
      Previous value: -"Wrap S mode (1000=Repeat, 1001=ClampToEdge, 1002=Mirrored)"New value: +"1000=Repeat, 1001=ClampToEdge, 1002=MirroredRepeat"
    • changedInput schema / properties / wrapT / description
      Previous value: -"Wrap T mode"New value: +"Same values as wrapS"
  2. First observedv0.4.1

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already flag readOnly=false, idempotent=true, destructive=false, but the description adds substantial non-obvious behavior: changes are browser-only, NOT saved to source, lost on reload, recorded in pending_changes (→ code edits), and undoable via revert_changes. That is exactly the kind of ephemerality and side-effect context an agent needs and cannot get from annotations alone.

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?

Two tight sentences, with the critical LIVE PREVIEW constraint front-loaded before the editable-property list. Every clause carries information; no filler.

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-param mutation tool with no output schema, the description covers the key behavioral risks (ephemerality, recording, undo) and points to related tools by name. It stops short of explaining return/pending-change shape or partial-update semantics, which would complete the picture.

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 high (92%), so the schema already documents wrap/filter offsets and enum-like numeric codes. The description lists property names but adds no syntax or value meaning beyond the schema, so the baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('Change texture sampling and transform') and enumerates the exact property groups affected (wrap, filter, anisotropy, repeat, offset, rotation, colorSpace). This clearly distinguishes it from sibling mutation tools like set_material_property and set_uniform, which target different resources.

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

Usage Guidelines3/5

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

The description explains the LIVE PREVIEW nature and the persistence/undo path, which implies it's for ephemeral experimentation, but it never explicitly states when to use this tool over a sibling like set_material_property or a persistent workflow. Usage is inferable rather than spelled out.

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