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
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | export/import: a path, relative to the workspace | |
| name | No | ||
| action | Yes |