Create documents
createCreate Foundry VTT world documents from JSON data or local files, including embedded items, walls, lights, tokens and pages, with folder placement and duplicate handling options.
Instructions
Creates world documents from JSON data (Foundry document format), from local JSON files such as exported actors, or both. Embedded items, walls, lights, tokens and pages come along. Scenes with a background get a thumbnail. Scene tokens may be {actorId|actorName, x, y} to start from the actor's prototype token.
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": {
"type": "<type>"
},
"name": "create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| type | Yes | Document type: Actor, Item, Scene, JournalEntry, Macro, RollTable, Playlist, Cards, Folder, ChatMessage, Combat, User | |
| files | No | Local JSON files on this server, each one document or an array | |
| dryRun | No | Report what would happen without changing anything | |
| folder | No | Folder path, e.g. "Session2/Maps". Missing folders are created. | |
| keepId | No | Keep the data's _id (fails if one is taken) | |
| onDuplicate | No | When a document with the same name is already in the target folder: skip it (default), replace it, or create another | skip |