Use Interaction
useExecute an inspected interaction, optionally applying an inventory item, to update the virtual escape-room state with version protection.
Instructions
Perform an interactionId returned by inspect, optionally with an inventory itemId. This changes only virtual room state and is protected by actionId and stateVersion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | Opaque run ID returned by start_run. | |
| itemId | No | Optional inventory item ID to use for the interaction. | |
| actionId | Yes | Unique idempotency key for this action. Reuse only when retrying the exact same action. | |
| interactionId | Yes | Interaction ID returned by inspect. | |
| expectedStateVersion | Yes | Latest stateVersion observed from a previous ToolQuest result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| code | No | ||
| data | Yes | ||
| runId | No | ||
| score | No | ||
| events | Yes | ||
| status | No | ||
| message | Yes | ||
| eventSeq | No | ||
| retryable | No | ||
| stateHash | No | ||
| recoveryHint | No | ||
| stateVersion | No | ||
| correlationId | No |