---
title: "games.script-intent@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/games.script-intent"
updated: null
---

# games.script-intent@1 · OpenVibe.Services

HTML: [games.script-intent@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/games.script-intent)

# GamesScriptIntent `games.script-intent@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: games
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/games/script-intent.v1.json`](/docs/contracts/games.script-intent.json)

games.script-intent@1: game.emit(intent), a world intent a script queues (games.world.emit). The server validates it like any player's intent before applying it; an invalid one throws inside the script.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `kind` | string | yes |  | - `pattern ^[a-z][a-zA-Z0-9_.]{0,39}$` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: spawn

~~~~
{
  "kind": "spawnItem",
  "item": "scrap",
  "at": {
    "x": 0,
    "y": 0,
    "z": 0
  }
}
~~~~

Rejected: no-kind

~~~~
{
  "item": "scrap"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('games.script-intent@1', value);   // { valid, errors: [{ path, message }] }
~~~~
