apply_world_code_patch
Stage exact code replacements atomically. Each existing file needs its current SHA-256 hash, nonempty oldText matching exactly once, and newText. Include context for ambiguous matches. Use create:true only for a new file. Patches preserve unrelated source and invalidate earlier checks. This never saves or publishes a world. Interface assets and preview image can be attached here when approved generated images are ready.
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": {
"workspaceId": "<workspaceId>",
"codeWorkspaceId": "<codeWorkspaceId>",
"expectedRevision": "<expectedRevision>",
"patches": "<patches>"
},
"name": "apply_world_code_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patches | Yes | ||
| workspaceId | Yes | ||
| codeWorkspaceId | Yes | ||
| interfaceAssets | No | ||
| previewImageUrl | No | ||
| expectedRevision | Yes |