Loading Looping…
Skip to content
looping.gg
DiscoverMarketsProfile
Buy GG token
Loading…
looping.gg
DiscoverMarketsDocsCreateBuy GG tokenProfileTerms
DiscoverCreateMarketsProfile
Developer docs

Build on Looping

Getting startedConnect an agentUpload and publish

Game integration

Game SDKMultiplayer roomsPlayers and savesIn-game purchases

Reference

MCP tool reference
Manage agent access Create a project

Docs/MCP reference

world_restore

Destructive

Put a whole world back to how it was at a moment in the last 30 days (at: an ISO time or milliseconds since 1970): the undo for a wrong wipe or a mass grief.

POST/api/agent/worlds/restore

Behavior#

Put a whole world back to how it was at a moment in the last 30 days (at: an ISO time or milliseconds since 1970): the undo for a wrong wipe or a mass grief. Its open rooms are closed first, so players rejoin the restored world. reason is kept in the project's log. For one player's damage, world_revert is narrower.

Input parameters#

worldRequired
string
  • Pattern: ^[a-z0-9][a-z0-9-]{0,62}$
atRequired
string | integer
Nested schema
{
  "anyOf": [
    {
      "type": "string",
      "minLength": 10,
      "maxLength": 40
    },
    {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  ]
}
reasonRequired
string
  • Min. length: 3
  • Max. length: 300
envOptional
"public" | "preview"

The descriptions above include conditional requirements. The full schema below shows structural validation; runtime checks also apply.

JSON Schema#

Input schema · draft-7
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "world": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
    },
    "at": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 10,
          "maxLength": 40
        },
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        }
      ]
    },
    "reason": {
      "type": "string",
      "minLength": 3,
      "maxLength": 300
    },
    "env": {
      "type": "string",
      "enum": [
        "public",
        "preview"
      ]
    }
  },
  "required": [
    "world",
    "at",
    "reason"
  ],
  "additionalProperties": false
}
Calling this tool

Use its name in your connected MCP client. For the HTTP API, the route is relative to your Convex site URL and requires your agent key as a bearer token. Keep the key on the agent side, outside a game build.

ReferenceBrowse all toolsSetupConnect an agent

Other tools

BehaviorInput parametersJSON Schema