Dump the game or a subtree to the workspace (sUNC saveinstance)
save-instanceSerialize an entire Roblox game or a chosen instance subtree to a file in the executor workspace, enabling backup or offline analysis. Set fileName and instancePath to control output.
Instructions
WRITES HOST FILES — serializes the entire game (or a chosen instance subtree) to a file in the executor's workspace folder via saveinstance. By default it dumps the whole DataModel; pass instancePath to dump just that subtree. This is a heavy operation that can take a while and produce a large file. Because executors differ on the exact signature, this tries several forms in order: saveinstance({ FilePath = fileName }), then saveinstance(instance, fileName) / saveinstance(instance), then saveinstance(). Requires saveinstance. The call is type-guarded and pcall-wrapped: if saveinstance is missing you get { error = 'saveinstance is not available in this executor.' }. Returns { saved, note } or { error }. Signature: { fileName: string?, instancePath: string?, threadContext: number?, timeoutMs: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, resolved-target, explicit-mutation-approval. Produces: structured-result. Verify with: assert-state. Safety: MUTATING; writes live game/client state. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | No | Optional output file name within the executor workspace (e.g. 'place.rbxm'). Omit to let the executor pick a default. | |
| timeoutMs | No | Optional per-call deadline in milliseconds; omit it to use the tool or server default. | |
| instancePath | No | Optional Luau expression for the instance to dump (e.g. 'game.Workspace'). Defaults to the whole game. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |