Use emulated XR controllers to verify proximity grabbing for OneHandGrabbable and TwoHandsGrabbable objects. Use for pick up, move, release, or regression-test requests involving near-hand grab with the squeeze button.
Use this workflow only for OneHandGrabbable or TwoHandsGrabbable. A
DistanceGrabbable uses the ray/trigger path instead.
Check XR session state and enter XR only when inactive.
Find the named live entity and query its components and transform. If it is absent, list nearby grabbable matches once and stop with the evidence.
Confirm it has OneHandGrabbable or TwoHandsGrabbable. Do not guess the
interaction type from its name.
Animate the requested controller to the object. Default to the right controller only when the user did not choose a hand.
Press and hold squeeze/grip button index 1:
{"device":"controller-right","buttons":[{"index":1,"value":1}]}Query the entity for Grabbed or another requested observable state. If the
grab did not qualify, make one focused correction to controller position and
retry once.
If movement was requested, animate the held controller to the destination.
Release squeeze with index 1, value 0, then query the final transform or
state. Move the controller away only when overlap would interfere with the
result.
Do not use trigger index 0, xr select, or teleport-style device mutation for
proximity grab. Do not edit source merely to make an existing named entity easier
to locate; report missing runtime identity when that is the actual defect.
Prefer measured ECS state over screenshots. Capture one runtime image only when the user requested visual evidence or placement must be judged. Batch related queries and avoid repeating session, hierarchy, or transform discovery after a successful read.
When the request names an artifact path, save it directly with
npx @iwsdk/cli browser screenshot --output-file <path>. A screenshot returned only
to model context does not satisfy a requested file deliverable.
Stop once the requested grab/move/release path and final state are proven. Leave the controller released and the XR session in the state the user requested.
0778f51
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.