world_export
Read onlyDownload a world's chunks as JSON lines ({"key", "d", "ver", "at"} per line) with its name, kind, scope, seed and epoch, one page of up to 512 KiB at a time: append lines to a file and call again with after: next until next is null.
/api/agent/worlds/exportBehavior
Download a world's chunks as JSON lines ({"key", "d", "ver", "at"} per line) with its name, kind, scope, seed and epoch, one page of up to 512 KiB at a time: append lines to a file and call again with after: next until next is null. It is the creator's game: they may run or move the world elsewhere.
Input parameters
worldRequiredstring- Pattern: ^[a-z0-9][a-z0-9-]{0,62}$
afterOptionalstring- Max. length: 200
envOptional"public" | "preview"The descriptions above include conditional requirements. The full schema below shows structural validation; runtime checks also apply.
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"world": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
},
"after": {
"type": "string",
"maxLength": 200
},
"env": {
"type": "string",
"enum": [
"public",
"preview"
]
}
},
"required": [
"world"
],
"additionalProperties": false
}Use its name in your connected MCP client. For the HTTP API, the route is relative to your Convex site URL and requires your agent key as a bearer token. Keep the key on the agent side, outside a game build.