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

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

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

# GamesScriptCall `games.script-call@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-call.v1.json`](/docs/contracts/games.script-call.json)

games.script-call@1: one hook call into a script mod's QuickJS sandbox (games.script.run): the hook the place fires and its JSON payload. The call runs under the mod's CPU budget; changes come back only as intents the server validates.

## Fields

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

## Examples

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

 Valid: join

~~~~
{
  "hook": "onPlayerJoin",
  "payload": {
    "playerId": "plr_1"
  }
}
~~~~

Valid: tick

~~~~
{
  "hook": "onTick",
  "payload": {
    "dt": 0.05
  }
}
~~~~

Rejected: bad-hook

~~~~
{
  "hook": "../x"
}
~~~~

Rejected: no-hook

~~~~
{
  "payload": {}
}
~~~~

## Validate

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