create_voxel_model
Create voxel model
Create an editable VoxelDraft model from compact commands. Returns a short modelRef for later plugin calls and does not save to Cloud Projects. Use VoxelDraft's compact instruction stream instead of emitting one JSON object per voxel. Coordinates are integers 0..63. Colors are either #RRGGBB or a zero-based palette index.
Commands:
["box",x1,y1,z1,x2,y2,z2,color,hollow?]
["ellipsoid",cx,cy,cz,rx,ry,rz,color,hollow?]
["cylinder","x"|"y"|"z",x,y,z,radius,height,color,hollow?]
["line",x1,y1,z1,x2,y2,z2,color]
["roof","x"|"z",x1,y1,z1,x2,y2,z2,color] (gable roof, axis is ridge direction)
["runs","x"|"y"|"z",color,[[x,y,z,length],...]] (preferred exact/freeform representation)
["points",color,[[x,y,z],...]] (sparse details only)
["erase",x1,y1,z1,x2,y2,z2]
["recolor",fromColor,toColor]
["copy",x1,y1,z1,x2,y2,z2,dx,dy,dz]
["repeat",x1,y1,z1,x2,y2,z2,dx,dy,dz,count]
["mirror","x"|"y"|"z",plane,x1,y1,z1,x2,y2,z2] (plane is a grid boundary 0..64)
Prefer box/roof/ellipsoid/cylinder for bulk geometry, runs for irregular silhouettes, repeat/mirror for repeated or symmetric parts, and points only for small details. This usually uses far fewer model tokens than raw voxel JSON.
輸入參數namepalettecommands必填
edit_voxel_model
Edit voxel model
Edit the temporary model identified by modelRef and return a new modelRef. This does not modify a saved cloud project. Use VoxelDraft's compact instruction stream instead of emitting one JSON object per voxel. Coordinates are integers 0..63. Colors are either #RRGGBB or a zero-based palette index.
Commands:
["box",x1,y1,z1,x2,y2,z2,color,hollow?]
["ellipsoid",cx,cy,cz,rx,ry,rz,color,hollow?]
["cylinder","x"|"y"|"z",x,y,z,radius,height,color,hollow?]
["line",x1,y1,z1,x2,y2,z2,color]
["roof","x"|"z",x1,y1,z1,x2,y2,z2,color] (gable roof, axis is ridge direction)
["runs","x"|"y"|"z",color,[[x,y,z,length],...]] (preferred exact/freeform representation)
["points",color,[[x,y,z],...]] (sparse details only)
["erase",x1,y1,z1,x2,y2,z2]
["recolor",fromColor,toColor]
["copy",x1,y1,z1,x2,y2,z2,dx,dy,dz]
["repeat",x1,y1,z1,x2,y2,z2,dx,dy,dz,count]
["mirror","x"|"y"|"z",plane,x1,y1,z1,x2,y2,z2] (plane is a grid boundary 0..64)
Prefer box/roof/ellipsoid/cylinder for bulk geometry, runs for irregular silhouettes, repeat/mirror for repeated or symmetric parts, and points only for small details. This usually uses far fewer model tokens than raw voxel JSON.
輸入參數palettecommands必填modelRef必填
inspect_voxel_model
Inspect voxel model
Inspect a temporary VoxelDraft modelRef. Returns voxel count, command count, bounds, and colors.
輸入參數modelRef必填
render_voxel_model
Render voxel model
Preview a VoxelDraft modelRef. ChatGPT can render an interactive Three.js/WebGL widget; everyone also receives an interactive WebGL URL. Signed-in VoxelDraft Plus users may additionally receive a cached PNG when includeImage is true.
輸入參數viewlanguagemodelRef必填imageSizebackgroundincludeImage
export_voxel_model
Export voxel model
Create direct download URLs for OBJ+MTL or compact VoxelDraft JSON from a modelRef.
輸入參數formatmodelRef必填
save_voxel_model
Save voxel model to my VoxelDraft account
Save the temporary model identified by modelRef to private VoxelDraft Cloud Projects. Requires project-write OAuth scope. Pass projectId to update an existing owned cloud project.
輸入參數modelRef必填projectId
list_voxel_projects
List my VoxelDraft projects
List private VoxelDraft Cloud Projects. Requires project-read OAuth scope.
無需輸入參數。
load_voxel_project
Load a VoxelDraft project
Load one private Cloud Project and return a short modelRef for later plugin calls. Requires project-read OAuth scope.
輸入參數languageprojectId必填