export-actor
Export a Foundry actor or token instance to a local JSON file for backup or transfer, preserving full character data, items, effects, and ownership, with an import-ready envelope.
Instructions
Write ONE actor to a LOCAL file as a full-fidelity native Foundry JSON export — the complete document source (system, every embedded item with its uses/charges and flags, effects, prototype token, ownership), stamped with the exportSource envelope so the file round-trips through the sheet's Import Data button. THE character backup/restore path (get-actor is a lossy summary view). Accepts a placed token id to capture an unlinked token instance. Refuses to overwrite an existing file unless overwrite:true.
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": {
"identifier": "<identifier>",
"localPath": "<localPath>"
},
"name": "export-actor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Absolute local destination path for the JSON file (parent dirs created), e.g. "D:\\campaign\\party-snapshots\\2026-08-25\\Gren.json". | |
| overwrite | No | Allow overwriting an existing file at localPath. | |
| identifier | Yes | Actor name or ID to export. Also accepts a placed TOKEN id (from list-tokens) to export that token INSTANCE's live state — an unlinked token can differ from its base actor. |