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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patches | Yes | ||
| workspaceId | Yes | ||
| codeWorkspaceId | Yes | ||
| interfaceAssets | No | ||
| previewImageUrl | No | ||
| expectedRevision | Yes |