world_generate
Run a small JavaScript program on the server that emits many entities (a stair, a village, a forest). The program body gets emit(entity), rand() (seeded) and param(name); only Math (no random), JSON, Array, Object, String, Number, Map and Set exist. Limits: source 16 KB, params 2 KB, 500 emits, 50 ms CPU, 6 runs a minute. Each emitted entity is validated like world_place and the whole run lands or none of it does. Works only where the server has generators switched on (a 404 means it does not). Returns the created ids.
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": {
"source": "<source>",
"seed": "<seed>"
},
"name": "world_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room | No | ||
| seed | Yes | ||
| params | No | ||
| source | Yes |