New folder
create_folderCreates a folder (free name) in a game, to GROUP several entities (Enemies, Items) or, in Ambience and Interface, sounds by place or screen. Never a folder for a single thing like the player: that is an entity (create_entity). It goes at the root of a tab (section) or inside another folder (parent_id), and can already take entities (entity_ids), which then inherit its events. Every tab takes subfolders: ambience by place (Forest, Cave), interface by screen (Menus, HUD), effects by kind of thing (Units, Weapons). A small game keeps ambience and interface events straight in the tab, without subfolders. Spends no credits; returns the folder id and its site page (url). To see the existing folders first, use list_folders; to move entities later, move_entities.
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": {
"game_id": "<game_id>",
"name": "<name>"
},
"name": "create_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The folder name shown on the site, in the game's language (e.g. Enemies, Forest, Menus). Up to 60 characters. | |
| game_id | Yes | The game id, from list_games or create_game. | |
| section | No | The tab the folder goes in, at its root: ambience, effects (Sound effects), interface or music. Ignored with parent_id. Without both: effects. | |
| parent_id | No | Parent folder (a subfolder of any tab). Without it, the folder goes at the root of section. | |
| entity_ids | No | Optional: entities of this game (ids from get_game) to move into the new folder. Up to 500. |