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

# games.script-storage-request@1 · OpenVibe.Services

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

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

games.script-storage-request@1: game.storage.get(key), set(key, value), delete(key) and keys(prefix?) on the mod's key/value storage for its place (games.storage.kv): keys up to 128 bytes, values up to 8 KB of JSON, at most 1000 keys and 1 MB per mod per place.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `op` | enum | yes |  | - `one of "get", "set", "delete", "keys"` |
| `key` | string |  |  | - `minLength 1`<br>- `maxLength 128` |
| `value` | any |  |  |  |
| `prefix` | string |  |  | - `maxLength 128` |

## Examples

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

 Valid: keys

~~~~
{
  "op": "keys",
  "prefix": "score:"
}
~~~~

Valid: set

~~~~
{
  "op": "set",
  "key": "visits",
  "value": 3
}
~~~~

Rejected: bad-op

~~~~
{
  "op": "drop"
}
~~~~

Rejected: long-key

~~~~
{
  "op": "get",
  "key": "kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk"
}
~~~~

## Validate

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