Skip to main content
Glama

craftos_world_snapshot

Save, list, restore, delete, or export/import a whole ComputerCraft emulator world—files, players, items, chat, peripherals, and turtle blocks—as a named snapshot or .craftos-world file.

Instructions

Save the whole world (every session's files and label, players, items, chat, peripherals, a turtle's blocks, the time of day) under a name, list the saved ones, restore one (each computer reboots into it; sessions that are gone are made again, the viewer's computers made after it are closed, other sessions are left alone; a computer on a person's folder, live, has that folder put back exactly: changed files written back, files made since removed, a copy of each in folders[].backup), delete one, or move one as a .craftos-world file: export writes it to file, import reads file. The browser app's Snapshots button uses the same ones.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "craftos_world_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoexport/import: a path, relative to the workspace
nameNo
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With only openWorldHint/destructiveHint annotations supplied, the description carries and delivers the behavioral burden: restore reboots each computer, recreates vanished sessions, closes the viewer's later-created computers, leaves other sessions alone, and rewrites a live person's folder exactly while keeping a copy in `folders[].backup`. It also notes that the Snapshots UI button shares the same snapshot store, which is state-sharing context an agent could not infer.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The primary action is front-loaded ('Save the whole world ... under a name'), and nearly every clause carries real information, including the backup path. However it is delivered as one long run-on sentence with deeply nested parentheses, which makes the per-action semantics hard to scan; splitting the six actions into discrete clauses would cost nothing and read far better.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-action, three-parameter tool with no output schema and thin annotations, the description covers what is saved, the side effects of restore, and how export/import relate to save/restore, which is most of what an agent needs. The omissions are what `list` returns and per-action parameter requirements; neither is fatal but both would matter at call time.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% (only `file` is documented), but the description compensates well: `file` is tied to export/import as a workspace-relative path, `name` is framed as the identifier the world is saved under, and all six `action` enum values are given explicit semantics. The remaining gap is conditional requiredness — the schema marks only `action` as required, and the description never says which of `name`/`file` each action actually needs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb set and resource ('Save the whole world ... under a name, list the saved ones, restore one ... delete one, or move one as a .craftos-world file') and even enumerates what the world contains (files and label, players, items, chat, peripherals, turtle blocks, time of day). This is unmistakably distinct from siblings such as craftos_list_files, craftos_session_list, or craftos_session_destroy, which operate on narrow slices rather than whole-world state.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Each action is given a clear usage context, and the save/restore vs. export/import split is explained ('move one as a .craftos-world file: export writes it to `file`, import reads it `file`'), which is the routing decision an agent most needs. What is missing is pruning against alternatives or prerequisites: nothing says whether restore requires an existing session or how it differs from craftos_seed or craftos_script for setting up state.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.