Your ideas.
A few good tools.
build0 exposes its world through the official Model Context Protocol SDK using Streamable HTTP. The MCP server is a separate process; both interfaces use the same database, authorization, validation, and revision rules.
1. Understand the two connections
Use one AI client with two MCP connections. build0 MCP is server-side: it runs on build0.city, authenticates your account, and validates each lot edit. Connect agent remembers your selected target in this browser; the AI includes that lot ID in each operation. Blender MCP is local: its server and Blender add-on run on your own computer and let your agent work with the open Blender scene. The build0 server cannot see files or applications on your PC; your AI client connects the two MCPs and passes the exported model to build0.
2. Create or reuse your build0 key
Sign in to the website, choose “Connect agent”, and generate an agent key if you do not already have one. Keep using the same key for future work; you do not need a new key for each model or lot update. The key is displayed at creation and stored hashed on the server. Create separate named connections with 7, 30 or 90 day expiry. Adding a connection does not revoke any existing key. Restrict it to a lot and inspect/build/publish permissions, or deliberately select full account access. Revoke individual connections in Connect agent; Settings can revoke all keys.
3. Connect the build0 server
Add build0 as a remote Streamable HTTP server in your AI client. Keep the bearer key in the client’s private configuration; do not put it in a URL, prompt, or public repository. The production endpoint is shown in Connect agent. For local development, use the local endpoint shown by your running MCP server instead.
{
"mcpServers": {
"build0": {
"url": "https://build0.city/mcp",
"headers": {
"Authorization": "Bearer YOUR_AGENT_KEY"
}
},
"blender": {
"command": "uvx",
"args": [
"mcp-for-blender"
]
}
}
}Client configuration formats differ. Connect agent can copy the build0 entry for supported clients; keep that entry when you add the local Blender server. build0 uses personal bearer keys rather than an OAuth discovery flow.
4. Install Blender MCP on your computer
Follow the MCP for Blender installation guide. On Windows, install uv from a terminal with winget install --id=astral-sh.uv -e, then run uvx mcp-for-blender setup. The setup installs the local server and Blender add-on and can configure supported AI clients. Open Blender and make sure the “MCP for Blender” add-on is enabled. Restart Blender and your AI client after setup.
If you configure it manually, add the Blender entry alongside the build0 entry in the same client. The Blender setup keeps existing MCP entries. For Codex, both entries can look like this:
[mcp_servers.build0]
url = "https://build0.city/mcp"
http_headers = { "Authorization" = "Bearer YOUR_AGENT_KEY" }
[mcp_servers.blender]
command = "uvx"
args = ["mcp-for-blender"]Blender MCP talks to the add-on on your own computer over localhost. Leave it local; do not expose its port to the internet. For security, only connect an AI client you trust because Blender tools can modify the open scene.
5. Export from Blender and update your lot
With both MCPs enabled in the same AI client and Blender open, ask the agent to inspect your selected build0 lot, create or edit the model in Blender, and export it as a self-contained GLB. GLB is the format build0 can render. If your source is FBX, export it from Blender as GLB before uploading. The AI client needs local file access to read the exported GLB so it can send it through build0 MCP.
Example request: "Inspect my selected lot. In Blender, refine the selected arena model, export it as a self-contained GLB under the build0 model limits, upload it to this lot with build0 MCP, and update the existing model in place. Keep all other lot objects and ask before replacing anything."
The agent uses Blender MCP to create and export the file, then uses build0 MCP upload_model to store it on your lot andupdate_object or add_object to place it. For a game, the agent can bind the uploaded asset to the experience with save_experience.asset_ids. Publishing makes the new version available to visitors. The build0 key stays the same.
6. Inspect, plan, build
get_build_guide({})
list_my_lots({})
inspect_lot_scene({ "lot_id": "YOUR_OWN_LOT_ID" })
// Example only: design the user's own creation.
add_object({
"lot_id": "YOUR_OWN_LOT_ID",
"object_type": "octahedron",
"name": "My living sculpture",
"position": [0, 10, 0],
"scale": [8, 8, 8],
"animation": {
"spin": [0, 0.4, 0],
"bob": { "amplitude": 0.5, "speed": 0.2 }
},
"surface": { "emissive": "#ff153c", "emissiveIntensity": 2 }
})Your creation stays visible and animated in the shared 3D city without pressing Play. Build any original design using procedural parts or upload your own GLB with looping animation clips. Game templates are optional; a separate experience script does not animate the outside of a lot.
Scene operations persist immediately. Inspect first, explain your plan, request confirmation for destructive replacements, apply only authorized operations, and report the returned result. Use save_lot only when the user requests or approves a save of a complete scene. Pass the current revision to prevent overwriting concurrent edits. Every saved exterior stage is visible live to everyone in the city, including guests. Keep object IDs stable and save your foundation, structure and details in separate stages so people can watch the construction. Split large models into parts when possible. Publishing controls the playable snapshot; later game and experience changes require publishing again.
Game updates use the same visible construction lifecycle. Call begin_lot_build before planning or coding. save_experience starts or updates the site automatically; publish_experience completes it. The existing exterior stays in place while the label shows the game revision. After queued assembly finishes, the grid clears smoothly and four large confetti volleys celebrate delivery for 12 seconds. All spectators follow the same server timeline, including after a reconnect. Repeated publication does not restart the celebration. When finishing manually, pass the returned build ID as session_id to finish_lot_build so an older workflow cannot close newer work.
Tool reference
This reference is generated from the same schemas and descriptions used by the MCP server. Download the JSON reference ↗
| Tool | Purpose |
|---|---|
get_maker_catalog | List reusable gw.components APIs, five original starter games, visual style packs and the safe creator workflow.Input schema{
"type": "object",
"properties": {},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
check_experience | Check a saved revision for syntax, missing assets, spawn bounds and asset budgets before publication. Does not execute code or prove controls and performance; run a private test too.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0
}
},
"required": [
"lot_id",
"revision"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
list_experience_versions | List saved game revisions, current publication and active private test link metadata. Never returns raw test tokens.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"before_revision": {
"type": "integer",
"exclusiveMinimum": 0
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
create_test_link | Owner-only: create an expiring bearer link to one immutable saved game revision. Live game is unchanged; test progress is separate and local. Share only with intended testers.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0
},
"hours": {
"type": "integer",
"minimum": 1,
"maximum": 168,
"default": 24
}
},
"required": [
"lot_id",
"revision"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
revoke_test_link | Owner-only: revoke one private test link. Running clients recheck within 30 seconds; previously downloaded data cannot be erased.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"preview_id": {
"type": "string"
}
},
"required": [
"lot_id",
"preview_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
rollback_experience | Owner-only: restore a saved game revision as the live game with an expected-current-revision conflict guard. Requires publication authority. Does not restore the separate city exterior.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"revision": {
"type": "integer",
"exclusiveMinimum": 0
},
"expected_published_revision": {
"type": "integer",
"exclusiveMinimum": 0
}
},
"required": [
"lot_id",
"revision",
"expected_published_revision"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
create_starter_game | Create a new draft of one of five original procedural games. Requires explicit replace_draft:true; preserve unsaved work first. Does not publish or replace the city exterior.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"starter": {
"type": "string",
"enum": [
"firefly",
"relic",
"circuit",
"garden",
"observatory"
]
},
"revision": {
"type": "integer",
"minimum": 0
},
"replace_draft": {
"type": "boolean",
"const": true
}
},
"required": [
"lot_id",
"starter",
"revision",
"replace_draft"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
search_asset_library | Search the editable lot's asset names/IDs and tags, with cursor pagination, original/variant metadata, URLs and usage across scene objects and game revisions.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"query": {
"type": "string",
"maxLength": 100,
"default": ""
},
"tag": {
"type": "string",
"maxLength": 40
},
"cursor": {
"type": "string"
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
describe_asset | Name and tag an immutable lot asset, optionally recording the local source filename. Does not upload native Blender or FBX sources.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"asset_id": {
"type": "string"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"tags": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"maxItems": 12,
"default": []
},
"source_name": {
"type": "string",
"maxLength": 160
}
},
"required": [
"lot_id",
"asset_id",
"name"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
set_build_stage | Update the active construction banner with models, upload, validate, save or publish stage. Requires the current session_id to prevent stale agents overwriting newer progress.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"session_id": {
"type": "string"
},
"stage": {
"type": "string",
"enum": [
"models",
"upload",
"validate",
"save",
"publish"
]
},
"message": {
"type": "string",
"maxLength": 120,
"default": ""
}
},
"required": [
"lot_id",
"session_id",
"stage"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
get_blender_publish_guide | Return this lot's bounds, Blender local-to-server export/publication workflow, validation limits and the downloadable Blender Python export helper.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
list_marketplace_lots | Browse real active whole-lot listings. Search names, lot IDs or coordinates, filter CB price and sort. No purchase is performed.Input schema{
"type": "object",
"properties": {
"q": {
"type": "string",
"maxLength": 100,
"default": ""
},
"sort": {
"type": "string",
"enum": [
"recent",
"price_asc",
"price_desc"
],
"default": "recent"
},
"minPrice": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
},
"maxPrice": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
},
"page": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
list_my_lots_for_sale | View your active listings, completed sales, cancellations and CB ledger references.Input schema{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"all",
"ACTIVE",
"SOLD",
"CANCELLED",
"SUSPENDED"
],
"default": "all"
},
"page": {
"type": "integer",
"minimum": 1,
"maximum": 10000,
"default": 1
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
get_lot_listing | Inspect a lot's current listing, exact CB asking price, listing version, lot revision, content counts and transfer policy before confirmation.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
create_lot_listing | List your complete owned lot for a whole CB asking price. First explain the entire-lot transfer and obtain explicit user confirmation and transfer-rights confirmation; then set confirm and rights_confirmed true.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"price": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
},
"rights_confirmed": {
"type": "boolean",
"const": true
},
"confirm": {
"type": "boolean",
"const": true
}
},
"required": [
"lot_id",
"price",
"rights_confirmed",
"confirm"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
update_lot_listing_price | Change your active lot listing price using its latest version. Explain the new asking price and obtain explicit user confirmation before setting confirm true.Input schema{
"type": "object",
"properties": {
"listing_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"version": {
"type": "integer",
"exclusiveMinimum": 0
},
"price": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
},
"confirm": {
"type": "boolean",
"const": true
}
},
"required": [
"listing_id",
"version",
"price",
"confirm"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
cancel_lot_listing | Cancel your active sale listing using its latest version. Ask for explicit user confirmation before setting confirm true.Input schema{
"type": "object",
"properties": {
"listing_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"version": {
"type": "integer",
"exclusiveMinimum": 0
},
"confirm": {
"type": "boolean",
"const": true
}
},
"required": [
"listing_id",
"version",
"confirm"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
purchase_lot | Spend the authenticated user's available CB to buy the complete listed lot. First get_lot_listing; show exact price, fee (0 CB), included content and seller. Obtain explicit user confirmation, then provide that listing version, lot revision, expected price, a stable UUID request_id and confirm true. A stale quote is rejected and requires new confirmation. Never purchase without the user's explicit approval.Input schema{
"type": "object",
"properties": {
"listing_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"version": {
"type": "integer",
"exclusiveMinimum": 0
},
"lot_revision": {
"type": "integer",
"minimum": 0
},
"content_version": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"expected_price": {
"type": "integer",
"minimum": 1,
"maximum": 1000000
},
"request_id": {
"type": "string",
"format": "uuid"
},
"confirm": {
"type": "boolean",
"const": true
}
},
"required": [
"listing_id",
"version",
"lot_revision",
"content_version",
"expected_price",
"request_id",
"confirm"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
discover_world | Inspect city dimensions, claim pricing and rendering capabilities. Call get_build_guide before creating a build.Input schema{
"type": "object",
"properties": {},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
get_build_guide | Read first: how to build original animated 3D exteriors directly in the shared city, using custom GLB models or procedural geometry. Includes animation, materials, budgets and workflow.Input schema{
"type": "object",
"properties": {},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
list_available_lots | build0 list available lots. Scene writes persist immediately. Inspect first; ask before destructive operations.Input schema{
"type": "object",
"properties": {
"min_x": {
"type": "integer",
"minimum": -512,
"maximum": 512,
"default": -8
},
"max_x": {
"type": "integer",
"minimum": -512,
"maximum": 512,
"default": 8
},
"min_z": {
"type": "integer",
"minimum": -512,
"maximum": 512,
"default": -8
},
"max_z": {
"type": "integer",
"minimum": -512,
"maximum": 512,
"default": 8
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"lot_size": {
"type": "number",
"const": 32
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
get_lot | build0 get lot. Scene writes persist immediately. Inspect first; ask before destructive operations.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
claim_lot | build0 claim lot. Scene writes persist immediately. Inspect first; ask before destructive operations.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"project_name": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
list_my_lots | build0 list my lots. Scene writes persist immediately. Inspect first; ask before destructive operations.Input schema{
"type": "object",
"properties": {
"cursor": {
"type": "string"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
inspect_lot_scene | Read the owned lot's current scene, revision and bounds before editing. Exterior animations live in scene object animation/surface fields or GLB clips.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
begin_lot_build | Mark your selected lot as an active construction site before doing build work. Idempotent during an active session. replay_existing:true replays the current exterior as a visual construction sequence without deleting any content; use only when the user wants to replay its construction.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"replay_existing": {
"type": "boolean",
"default": false
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
finish_lot_build | Finish the selected construction session. Pass session_id from begin_lot_build to avoid closing newer work. Pending assembly continues, then the grid clears and a shared 12-second confetti celebration runs. Repeating finish is idempotent. publish_experience and publish_lot also finish the session.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
add_object | Place original exterior geometry on the owned lot. Supports custom GLB assets, looping model clips, spin/bob/pulse animation and emissive/translucent/wireframe surfaces. Returns the saved revision. Each write becomes visible publicly in the city with a construction animation.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"object_type": {
"type": "string",
"enum": [
"box",
"tower",
"sphere",
"cylinder",
"arch",
"platform",
"coin",
"checkpoint",
"spawn",
"finish",
"model",
"torus",
"octahedron",
"torusKnot"
]
},
"asset_id": {
"type": "string"
},
"lod1": {
"type": "string"
},
"lod2": {
"type": "string"
},
"animate": {
"type": "boolean"
},
"modelAnimation": {
"type": "object",
"properties": {
"clip": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"speed": {
"type": "number",
"minimum": 0,
"maximum": 4,
"default": 1
},
"loop": {
"type": "boolean",
"default": true
},
"fade": {
"type": "number",
"minimum": 0,
"maximum": 2,
"default": 0.2
},
"restart": {
"type": "integer",
"minimum": 0,
"maximum": 1000000,
"default": 0
},
"startedAt": {
"type": "integer",
"minimum": 0,
"maximum": 8640000000000000
}
},
"required": [
"clip"
],
"additionalProperties": false
},
"ambientAudio": {
"type": "object",
"properties": {
"assetId": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"volume": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.6
},
"cycle": {
"type": "number",
"minimum": 1,
"maximum": 3600,
"default": 72
},
"cues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"assetId": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"at": {
"type": "number",
"minimum": 0,
"maximum": 3600
},
"volume": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.5
}
},
"required": [
"assetId",
"at"
],
"additionalProperties": false
},
"maxItems": 12,
"default": []
}
},
"required": [
"assetId"
],
"additionalProperties": false
},
"collidable": {
"type": "boolean"
},
"animation": {
"type": "object",
"properties": {
"spin": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"bob": {
"type": "object",
"properties": {
"amplitude": {
"type": "number",
"minimum": 0,
"maximum": 8
},
"speed": {
"type": "number",
"minimum": 0.05,
"maximum": 4
}
},
"required": [
"amplitude",
"speed"
],
"additionalProperties": false
},
"pulse": {
"type": "object",
"properties": {
"amplitude": {
"type": "number",
"minimum": 0,
"maximum": 0.4
},
"speed": {
"type": "number",
"minimum": 0.05,
"maximum": 4
}
},
"required": [
"amplitude",
"speed"
],
"additionalProperties": false
},
"phase": {
"type": "number",
"minimum": -100,
"maximum": 100,
"default": 0
}
},
"additionalProperties": false
},
"surface": {
"type": "object",
"properties": {
"emissive": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"emissiveIntensity": {
"type": "number",
"minimum": 0,
"maximum": 4
},
"opacity": {
"type": "number",
"minimum": 0.1,
"maximum": 1
},
"wireframe": {
"type": "boolean"
},
"metalness": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"roughness": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false
},
"position": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"rotation": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
],
"default": [
0,
0,
0
]
},
"scale": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
],
"default": [
2,
2,
2
]
},
"material": {
"type": "object",
"properties": {
"color": {
"type": "string"
}
},
"required": [
"color"
],
"additionalProperties": false
},
"name": {
"type": "string",
"maxLength": 80
}
},
"required": [
"lot_id",
"object_type",
"position"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
remove_object | build0 remove object. Scene writes persist immediately. Inspect first; ask before destructive operations.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"object_id": {
"type": "string"
}
},
"required": [
"lot_id",
"object_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
update_object | Modify an exterior part, including animation or surface. Pass animation:null or surface:null to remove those settings. Preserve the owner's other objects.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"object_id": {
"type": "string"
},
"changes": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 80
},
"position": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"rotation": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"scale": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"color": {
"type": "string"
},
"visible": {
"type": "boolean"
},
"collidable": {
"type": "boolean"
},
"animation": {
"anyOf": [
{
"type": "object",
"properties": {
"spin": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"bob": {
"type": "object",
"properties": {
"amplitude": {
"type": "number",
"minimum": 0,
"maximum": 8
},
"speed": {
"type": "number",
"minimum": 0.05,
"maximum": 4
}
},
"required": [
"amplitude",
"speed"
],
"additionalProperties": false
},
"pulse": {
"type": "object",
"properties": {
"amplitude": {
"type": "number",
"minimum": 0,
"maximum": 0.4
},
"speed": {
"type": "number",
"minimum": 0.05,
"maximum": 4
}
},
"required": [
"amplitude",
"speed"
],
"additionalProperties": false
},
"phase": {
"type": "number",
"minimum": -100,
"maximum": 100,
"default": 0
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"modelAnimation": {
"anyOf": [
{
"type": "object",
"properties": {
"clip": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"speed": {
"type": "number",
"minimum": 0,
"maximum": 4,
"default": 1
},
"loop": {
"type": "boolean",
"default": true
},
"fade": {
"type": "number",
"minimum": 0,
"maximum": 2,
"default": 0.2
},
"restart": {
"type": "integer",
"minimum": 0,
"maximum": 1000000,
"default": 0
},
"startedAt": {
"type": "integer",
"minimum": 0,
"maximum": 8640000000000000
}
},
"required": [
"clip"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"ambientAudio": {
"anyOf": [
{
"type": "object",
"properties": {
"assetId": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"volume": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.6
},
"cycle": {
"type": "number",
"minimum": 1,
"maximum": 3600,
"default": 72
},
"cues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"assetId": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"at": {
"type": "number",
"minimum": 0,
"maximum": 3600
},
"volume": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.5
}
},
"required": [
"assetId",
"at"
],
"additionalProperties": false
},
"maxItems": 12,
"default": []
}
},
"required": [
"assetId"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"surface": {
"anyOf": [
{
"type": "object",
"properties": {
"emissive": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"emissiveIntensity": {
"type": "number",
"minimum": 0,
"maximum": 4
},
"opacity": {
"type": "number",
"minimum": 0.1,
"maximum": 1
},
"wireframe": {
"type": "boolean"
},
"metalness": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"roughness": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"required": [
"lot_id",
"object_id",
"changes"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
create_game | Create a predefined playable game template ONLY when the user explicitly wants one. This may replace the exterior; it is not the default way to build a sculpture or original animated creation.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"game_type": {
"type": "string",
"enum": [
"obstacle",
"racing",
"coins",
"targets",
"platform",
"exploration",
"showcase",
"ferris",
"logflume",
"minigolf",
"tennis",
"bumpercars"
]
},
"game_name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"configuration": {
"type": "object",
"properties": {
"duration": {
"type": "integer",
"minimum": 15,
"maximum": 600
},
"target": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"additionalProperties": false,
"default": {}
},
"replace_scene": {
"type": "boolean",
"default": false
}
},
"required": [
"lot_id",
"game_type",
"game_name"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
save_lot | Save an original 3D exterior stage with optimistic revision checking. Keep stable object IDs and save incremental stages so everyone can watch the construction live. Supports animated custom GLB models and procedural animated objects. Do not replace the scene with a game template unless requested.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"scene": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"name": {
"type": "string",
"maxLength": 80
},
"type": {
"type": "string",
"enum": [
"box",
"tower",
"sphere",
"cylinder",
"arch",
"platform",
"coin",
"checkpoint",
"spawn",
"finish",
"model",
"torus",
"octahedron",
"torusKnot"
]
},
"position": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"rotation": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"scale": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"visible": {
"type": "boolean",
"default": true
},
"collidable": {
"type": "boolean"
},
"assetId": {
"type": "string",
"maxLength": 100
},
"lod1": {
"type": "string",
"maxLength": 100
},
"lod2": {
"type": "string",
"maxLength": 100
},
"animate": {
"type": "boolean"
},
"modelAnimation": {
"type": "object",
"properties": {
"clip": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"speed": {
"type": "number",
"minimum": 0,
"maximum": 4,
"default": 1
},
"loop": {
"type": "boolean",
"default": true
},
"fade": {
"type": "number",
"minimum": 0,
"maximum": 2,
"default": 0.2
},
"restart": {
"type": "integer",
"minimum": 0,
"maximum": 1000000,
"default": 0
},
"startedAt": {
"type": "integer",
"minimum": 0,
"maximum": 8640000000000000
}
},
"required": [
"clip"
],
"additionalProperties": false
},
"ambientAudio": {
"type": "object",
"properties": {
"assetId": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"volume": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.6
},
"cycle": {
"type": "number",
"minimum": 1,
"maximum": 3600,
"default": 72
},
"cues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"assetId": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"at": {
"type": "number",
"minimum": 0,
"maximum": 3600
},
"volume": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.5
}
},
"required": [
"assetId",
"at"
],
"additionalProperties": false
},
"maxItems": 12,
"default": []
}
},
"required": [
"assetId"
],
"additionalProperties": false
},
"animation": {
"type": "object",
"properties": {
"spin": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"bob": {
"type": "object",
"properties": {
"amplitude": {
"type": "number",
"minimum": 0,
"maximum": 8
},
"speed": {
"type": "number",
"minimum": 0.05,
"maximum": 4
}
},
"required": [
"amplitude",
"speed"
],
"additionalProperties": false
},
"pulse": {
"type": "object",
"properties": {
"amplitude": {
"type": "number",
"minimum": 0,
"maximum": 0.4
},
"speed": {
"type": "number",
"minimum": 0.05,
"maximum": 4
}
},
"required": [
"amplitude",
"speed"
],
"additionalProperties": false
},
"phase": {
"type": "number",
"minimum": -100,
"maximum": 100,
"default": 0
}
},
"additionalProperties": false
},
"surface": {
"type": "object",
"properties": {
"emissive": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"emissiveIntensity": {
"type": "number",
"minimum": 0,
"maximum": 4
},
"opacity": {
"type": "number",
"minimum": 0.1,
"maximum": 1
},
"wireframe": {
"type": "boolean"
},
"metalness": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"roughness": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"additionalProperties": false
}
},
"required": [
"id",
"name",
"type",
"position",
"rotation",
"scale",
"color"
],
"additionalProperties": false
},
"maxItems": 300
},
"game": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"obstacle",
"racing",
"coins",
"targets",
"platform",
"exploration",
"showcase",
"ferris",
"logflume",
"minigolf",
"tennis",
"bumpercars"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"duration": {
"type": "integer",
"minimum": 15,
"maximum": 600,
"default": 60
},
"target": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 8
}
},
"required": [
"type",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"revision": {
"type": "integer",
"minimum": 0
}
},
"required": [
"lot_id",
"scene",
"revision"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
publish_lot | Publish the current exterior snapshot to all city visitors when authorized by the owner. Animated objects and GLB clips continue to run in the street view.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"published": {
"type": "boolean"
}
},
"required": [
"lot_id",
"published"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
visit_lot | build0 visit lot. Scene writes persist immediately. Inspect first; ask before destructive operations.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
upload_model | Upload a self-contained binary glTF 2.0 (GLB), optionally containing looping animation clips. Returns an asset ID to use in type:model objects with animate:true. Supports arbitrary user-designed geometry within budgets.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"glb_base64": {
"type": "string",
"maxLength": 14000000
}
},
"required": [
"lot_id",
"glb_base64"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
list_assets | build0 list assets. Scene writes persist immediately. Inspect first; ask before destructive operations.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
get_game_quality_guide | Read the exact game APIs and limits for Rapier physics/controller, named GLB animation, Yuka AI, spatial WAV audio, asset optimization, saved progression, particles, contact shading and touch/gamepad controls.Input schema{
"type": "object",
"properties": {},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
upload_audio | Upload lot-owned PCM WAV game audio. Add its ID to save_experience.asset_ids. Limits:5 MB,120 seconds,mono/stereo16/24-bit PCM8–48kHz.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"wav_base64": {
"type": "string",
"maxLength": 7000000
}
},
"required": [
"lot_id",
"wav_base64"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
inspect_asset | Inspect an owned lot asset: geometry, textures, estimated GPU memory, named animation clips/durations, or WAV metadata.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"asset_id": {
"type": "string"
}
},
"required": [
"lot_id",
"asset_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
optimize_model | Create an optimized copy of a lot GLB with WebP, deduplication, animation resampling and optional Meshopt. Keeps the original; does not replace a scene or publish a game.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"asset_id": {
"type": "string"
},
"texture_size": {
"type": "number",
"enum": [
512,
1024,
2048
],
"default": 2048
},
"compress_geometry": {
"type": "boolean",
"default": true
}
},
"required": [
"lot_id",
"asset_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
save_experience | Save isolated game JavaScript with its lot-owned model and audio IDs. Automatically starts or updates visible construction and its game revision. Call begin_lot_build before longer planning work. Upload GLBs with upload_model and WAV files with upload_audio; include every used ID in asset_ids. Save exterior geometry separately with save_lot. Publish only when authorized.Input schema{
"type": "object",
"properties": {
"maker_config": {
"type": "object",
"properties": {
"controls": {
"type": "string",
"maxLength": 500,
"default": "WASD / arrows · mouse to look · Space to jump"
},
"spawn": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
]
},
"saveVersion": {
"type": "integer",
"minimum": 0,
"maximum": 1000,
"default": 0
},
"migrations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "integer",
"minimum": 0
},
"to": {
"type": "integer",
"minimum": 1
},
"rename": {
"type": "array",
"items": {
"type": "object",
"properties": {
"from": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"to": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"required": [
"from",
"to"
],
"additionalProperties": false
},
"maxItems": 50,
"default": []
},
"defaults": {
"type": "object",
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"default": {}
}
},
"required": [
"from",
"to"
],
"additionalProperties": false
},
"maxItems": 100,
"default": []
},
"style": {
"type": "string",
"enum": [
"garden",
"neon",
"sunset",
"mist",
"arcade"
]
}
},
"additionalProperties": false
},
"lot_id": {
"type": "string"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"code": {
"type": "string",
"minLength": 10,
"maxLength": 100000
},
"asset_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"maxItems": 100,
"default": []
},
"revision": {
"type": "integer",
"minimum": 0
}
},
"required": [
"lot_id",
"name",
"code",
"revision"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
inspect_experience | Read the latest editable or publicly published game revision. Reading does not reopen completed construction. Call begin_lot_build on the selected lot before starting new planning or coding work.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
}
},
"required": [
"lot_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
publish_experience | Publish the selected game revision and finish its visible construction session. The queued assembly completes, the grid clears smoothly and all city spectators see a shared 12-second confetti celebration. Repeating the same publication does not replay it. Only this lot's game updates.Input schema{
"type": "object",
"properties": {
"lot_id": {
"type": "string"
},
"revision": {
"type": "integer",
"minimum": 1
},
"expected_published_revision": {
"type": "integer",
"exclusiveMinimum": 0
}
},
"required": [
"lot_id",
"revision"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
} |
A controlled scene API
Objects use local lot coordinates based on the actual width and depth returned by inspect_lot_scene, radians for rotations, and bounded positive scales. Public lot exteriors support at most 300 objects; isolated experiences support at most 400 objects so a lot model can sit alongside 300 individual targets. Uploaded GLB assets add textured and animated models. Custom experiences run separately in an isolated worker with the controlled gw scene, input, HUD, camera and audio API. Supported templates define movement, collision, marker collection, ordered checkpoints, click targets, finish conditions, timers, and restart behavior.
Use detailed models in a game
Upload a self-contained GLB to the target lot with upload_model, then add the returned asset ID to save_experience.asset_ids. In the worker script, draw it as a type: "model" scene object with that ID in assetId. The saved version records its selected lot assets; publishing that experience makes those models available to players. The main game renderer already supports GLB geometry, PBR materials, embedded textures, and animation clips.
const model = {
id: "hero",
type: "model",
assetId: "ASSET_ID_FROM_upload_model",
position: [0, 0, 0], rotation: [0, 0, 0], scale: [8, 8, 8],
color: "#ffffff", visible: true
};
gw.setScene([model]);
// When saving through MCP:
save_experience({
lot_id: "YOUR_OWN_LOT_ID",
name: "My game",
code: "...worker script...",
asset_ids: ["ASSET_ID_FROM_upload_model"],
revision: 0
});Create or refine models in Blender or a licensed model workflow, export them as GLB with embedded PBR textures and optional animation clips, then upload them to the same lot. MCP securely stores and links assets; the isolated game script cannot import npm packages or fetch files from the network. Publishing the experience is required before players can load its private lot assets.
Build richer games through MCP
Call get_game_quality_guide for the exact APIs, examples and limits for physics, character controls, named model animations, AI, spatial audio, asset optimization, saved progress, particles and contact shading. These capabilities are already provided by the player; your game does not import packages.
inspect_assetreports clip names, texture sizes and estimated texture memory.optimize_modelcreates an optimized GLB copy while retaining the original.upload_audiostores validated PCM WAV sound on the selected lot. Include its ID insave_experience.asset_ids.gw.physicsprovides collision bodies, a character controller and raycasts.gw.aiprovides steering agents.gw.storagepreserves a game's saved state across published revisions. Signed-in players sync to their account; guests save locally.- Touch and gamepad controls, optional
ambientOcclusionandgw.particleshelp games work and look better across devices.
gw.physics.configure({gravity:[0,-9.81,0]});
let started=false;
gw.onFrame((dt,input)=>{
if(!input.physicsReady)return;
if(!started){
started=true;
gw.physics.addBody({id:'floor',position:[0,-.5,0],size:[32,1,32]});
gw.physics.character({position:[0,2,10],camera:'firstPerson',bounds:[16,16]});
}
});Choose only the features needed by the game. Physics/AI modules load when their APIs are referenced. Publishing game code updates players of that lot; adding art or changing game settings does not require deploying the website. Stored progress must be explicitly saved by the game script.
Optional REA reference analysis
Connect REA to the same local AI client as build0 MCP when you want to investigate a reference game or application you are authorized to analyze. It can help your agent understand camera behavior, controls, interaction loops and animation timing. Your agent then implements an original game using build0 tools. REA is an analysis companion; visual artwork still comes from your model and texture workflow.
- Keep your existing build0 connection and lot key.
- Run the setup command below on your computer, select the same AI client, and review the setup plan.
- Restart that AI client when setup requests it, then run the readiness command.
- Give your agent the reference, selected lot ID and game briefing.
npx rea-agents@6.7.0 setup npx -y rea-agents@6.7.0 doctor --json
The connection uses REA 6.7.0. It requires Node.js 22.x (22.19 or later), 24.x (24.11 or later), or 26+; additional local analysis tools depend on the reference. REA runs locally and does not receive your build0 bearer key. The hosted build0 server stores and publishes your lot's game code and GLB assets. The game worker remains isolated and cannot run REA, load local files, or import arbitrary packages. Official REA setup guide ↗
Help me develop an original game on my existing build0 lot YOUR_EXISTING_LOT_ID. Keep all edits on this lot. Read build0 get_build_guide, inspect_lot_scene and inspect_experience first. Preserve existing work unless I request replacement. If I supply a reference and REA is connected, use its available tools to investigate the reference's controls, camera, interaction loop and animation timing. Report supporting evidence, limitations and unknowns. Ask which reference to use if I have not supplied one; continue planning the original game meanwhile. Translate the findings into my own game using gw.onFrame, input.keys, input.pointer, gw.camera, gw.environment, gw.setScene, gw.hud and gw.sound. The experience worker cannot import npm packages, access my filesystem or fetch network resources. Use local Blender MCP for original GLB models, embedded PBR textures and animation clips. Upload them with build0 upload_model and include every used asset ID in save_experience.asset_ids. REA analyzes references; Blender creates the artwork; build0 runs the resulting game. Use the latest experience revision when saving and respect the lot's bounds and model budgets. Publish only when I authorize publication. The platform updates only players of the published lot; it does not require a website deployment for game content changes.
Ask the agent to distinguish observed facts from guesses and to create original artwork. Upload GLB models to the same lot, save the game with its latest revision, and publish when ready. Active players check only their own lot for new published game revisions every five seconds. Applying an update restarts that game session without refreshing the website; games on other lots keep running.
Identity and development claims
A lot ID or wallet address never grants access. Every tool call resolves the bearer key to its database user. Only the owner or recorded collaborators may edit; only the owner may publish. Claims use a unique database constraint. No smart contract, payment, token balance, or transaction confirmation is simulated.