Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BRYCE3D_EXENoExecutable name used to find Bryce.bryce 3d.exe
BRYCE3D_INSTALLNoThe Bryce folder, for its presets.
BRYCE3D_TEMPLATESNoThe template scene.templates.br3 in the output folder
BRYCE3D_UI_ORIGINNo`x,y` screen pixel of the top-left of the 640x480 interface.
BRYCE3D_OUTPUT_DIRNoWhere scenes, terrain files, renders and exports are written.Documents\Bryce3D-MCP
BRYCE3D_REAL_INPUTNo`1` lets the interface tools use your real mouse and keyboard when the bridge is not connected.off

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Builds, renders and edits MetaCreations Bryce 3D scenes.

BUILD with the br3_ tools. They work on scene files:

  1. br3_new starts a scene from the user's template file (br3_status explains it).

  2. br3_edit applies a batch of changes and writes a NEW file, returning a preview picture and a report of what is in frame. Feed the returned path back in to keep building. br3_info lists everything in a scene.

  3. br3_preview is approximate (no textures, clouds or reflections). br3_render gives Bryce's real picture of a scene. br3_edit can also make NEW 3D shapes (op mesh: extrude, lathe, custom, OBJ), tilt the camera (bank), put picture files on objects, place and recolor procedural textures, set lights and moon phase. On Bryce's own timeline, op keyframes animates objects, the camera, sun, sky, materials and lamps, with a curve for the timing; op path draws a Bryce path and op follow_path moves an object or the camera along one (br3_operations has the fields). br3_animate makes keyframe and path animations as one scene per frame; br3_render_animation renders them and joins the pictures.

FILES: load_file opens, merges or imports into the running Bryce; save_scene saves it and checks the file was written. Bryce's own "save your changes?" box is answered with answer_save_box. Never discard unsaved work without the user's yes.

RUN BRYCE with bryce_command (any menu item), bryce_file_command, bryce_dialogs and screenshot. These use window messages and pictures of Bryce's own windows: they do not move the mouse, type, or take focus.

INSIDE BRYCE (open_lab for the Terrain Editor, Materials Lab, Sky Lab and Motion Lab, and everything else on screen): ask the user, then call bryce_connect_bridge. After that, click, drag, hover, press_keys, type_text, create_object, build_scene and the other interface tools drive Bryce with a VIRTUAL mouse and keyboard that only Bryce sees; the user's own are left alone. Without the bridge these tools refuse unless the user has set BRYCE3D_REAL_INPUT=1. Then:

  • Call screenshot first. Coordinates are UI pixels from the top-left of the 640x480 interface; a screenshot starts at y=-20, so UI y = image y - 20.

  • hover makes Bryce name the control in its bottom-left status text.

  • Tools marked UNVERIFIED have not been observed working on Bryce 3D.

  • If a tool reports that Bryce lost focus or the user moved the mouse, stop and ask.

Units are Bryce units, Y is up, position is the object's center, a cube of scale 1 is 20.48 on a side and rests on the ground at y=10.24. Pass confirm=true or overwrite=true only after the user has agreed.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
bryce_statusB

Find Bryce and report screen size, where its interface is and how many menu items it has. Does not take focus.

screenshotC

Picture Bryce's own windows (UI y = image y - 20). It does not take focus, works while Bryce is behind other windows, and never includes other programs. Bryce must not be minimized.

set_ui_originC

Manual calibration: screen pixel of the top-left corner of the 640x480 interface.

list_catalogB

Names accepted by the building tools: primitives, categories, colors.

list_commandsB

Named keyboard commands, with where each shortcut comes from and whether it can discard work.

bryce_connect_bridgeA

Load the bridge DLL into the running Bryce 3D. It gives Bryce a virtual mouse and keyboard (so the interface tools reach the Terrain, Materials, Sky and Motion Labs without touching the user's own), shows whether Bryce has unsaved changes, and helps follow renders. It loads code into the running program, so pass confirm=true once the user agrees; advise saving work first. It only loads into the supported Bryce 3D build and is gone when Bryce is closed. Security software may block it.

bryce_disconnect_bridgeA

Stop using the bridge. The DLL stays loaded but idle until Bryce is closed.

create_objectB

Create one primitive or light and optionally place, size, rotate, name and color it.

build_sceneA

Build many objects from one description. The whole list is validated first.

Each object: type (see list_catalog), and optionally name, position [x,y,z], size [x,y,z], rotation [degrees x,y,z], on_ground (position y becomes the base), boolean (neutral|positive|negative|intersect), material (a simple color name or {category,row,column}), repeat ({count,offset:[x,y,z]} or {count,radius}). Takes several seconds per object. Use dry_run=true to preview the expanded plan.

set_attributesB

Edit the selected object's exact values in Object Attributes. Position, rotation and size entry are verified; name and boolean are UNVERIFIED.

apply_materialB

Apply a material preset to the selection: a simple color name, or a library cell. Verified for Simple&Fast; switching to other categories is UNVERIFIED.

browse_object_libraryA

Open an object library category (rocks&trees, mountains, ...) and show it. UNVERIFIED beyond opening the library. Close it with click on the X, or use insert_library_object.

insert_library_objectC

Insert a preset from the object library into the scene. UNVERIFIED.

run_commandC

Run a named command from list_commands (select_all, duplicate, undo, group, ...).

renderA

Start a render of whatever Bryce has open. clear (File/Clear and Render) and resume (File/Render) go through Bryce's menu by window message, without focus, the bridge. button clicks the render sphere (bridge or real input). With wait=true this returns once the picture has not changed for settle_seconds; raise that for heavy scenes. For long renders use wait=false, then render_status. dismiss_report clicks the Render Report's check mark; like mode="button" it needs the bridge (or real input).

render_statusB

Watch the picture for up to watch_seconds. finished=true means it stopped changing, which a very slow render can also look like. Does not take focus.

save_render_imageA

Save what Bryce's viewport shows now as a PNG, at on-screen size. For the full render file use br3_render_result.

br3_renderA

The real render of a scene file, without the user's mouse or keyboard: opens it in the running Bryce, runs Clear and Render from Bryce's menu (with the bridge, falls back to the render button), follows the render and returns the picture. It replaces the scene open in Bryce, so pass confirm=true once the user agrees. Unsaved work in Bryce is never thrown away: with the bridge it is detected and the tool stops unless discard_changes=true (only when the user says so); without it, Bryce's own save question stops the tool. finished=false means check the picture; a blank picture is never reported as finished. Bryce must not be minimized. A Render Report box may cover part of the picture.

terrain_listB

List the terrains stored in a Bryce file (an .obp object library such as Bryce's Presets/Mountains.obp, or a saved .br3 scene), with thumbnails. The terrain tools work on files and do not touch the running program.

terrain_previewC

Show one terrain from a file: height as gray (left) and lit relief (right).

terrain_exportC

Save a terrain's exact heights as a 16-bit grayscale PNG.

terrain_operationsB

The editing operations terrain_edit accepts, with defaults and limits. Those named bryce_* do what the buttons of Bryce's own Terrain Editor do.

terrain_editA

Edit a terrain exactly, writing a NEW copy of a Bryce file; the source is not changed. Optionally start from heightmap_path (any picture, white is high; 16-bit PNG keeps precision), then apply operations in order, e.g. [{"op":"generate","shape":"mountain","seed":3},{"op":"hydraulic_erosion"}]. See terrain_operations. The grid size stays that of terrain number index, so pick one with the detail you want (terrain_preview shows it). source_path can be one of Bryce's Presets/*.obp libraries or a saved .br3 scene. For terrains inside scenes you build, br3_edit's "terrain" operation is simpler.

br3_statusB

Report where scene files are written, and whether the template file exists and which object kinds it can supply. The template file is any .br3 saved by the user's own Bryce that contains one object of each kind they want to add.

br3_presetsB

Names and descriptions of Bryce's own presets, read from the user's Bryce folder: ready-made models (insert_preset), materials such as Mirror and Metallic Chrome (material_preset) and skies (sky_preset). Also lists the texture names the texture operation can use when category is materials.

br3_operationsC

The operations br3_edit accepts, with their fields.

br3_infoC

Everything editable in a scene: objects (exact position, size, rotation, material), camera, sun and sky settings.

br3_newA

Start a new scene: the template file with every object removed except those named in keep (default: the ground, "Plane 1"). Optionally apply br3_edit operations at once. Camera, sun and sky come from the template file.

br3_editA

Apply a batch of changes to a scene and write the result as a NEW .br3 file (the source is never changed). Either every operation succeeds or nothing is written. See br3_operations. Example: [{"op":"add","kind":"sphere","name":"Moon","position":[0,60,40], "scale":[2,2,2],"material":{"color":"#d8d8c8"}}, {"op":"camera","position":[0,45,-160],"look_at":[0,25,0]}, {"op":"sun","azimuth":220,"altitude":35}]

br3_animateA

Make an animation: one scene file per frame from keyframes and paths, plus a preview GIF. (This does not use Bryce's own timeline: for that, see the keyframes operation of br3_edit. Render these frames with br3_render_animation.) Each track is {"target": "camera"|"object"|"sun"|"sky", "name": object name, "keys": [{"frame": 0, ...}], "path": {...}}. Keys: camera position, look_at, heading, pitch, bank, fov; object position, rotation, scale, size, material; sun azimuth, altitude, disc_color, halo_color; sky settings. A camera or object may instead follow "path": {"points": [[x,y,z],...], "closed": false, "follow": false, "heading_offset": 0, "start": 0, "end": last} at a steady speed; follow turns it to face the way it travels. A camera track may give "look_at_object": name. Example: orbit is a camera track with a closed path and look_at_object.

br3_render_animationA

Render an animation's frames in the running Bryce, count per call so that a call does not run for hours: call again until none remain. Finished frames are kept, so it can be resumed. When every frame is rendered, render.gif and the PNG frames are the result. Each frame replaces what Bryce has open (confirm=true). Unsaved work stops it unless discard_changes. Connect the bridge first.

br3_previewA

Draw an approximate picture of a scene without Bryce, with a report of where each object lands (in frame, out of frame, hidden). Shows shapes, flat colors, the sun and ground shadows; not textures, clouds, reflections or lights. height 0 follows the shape of the scene's picture size.

br3_terrain_pictureC

Show the heights of one terrain object in a scene.

br3_export_objB

Export a scene's shapes and terrains as a Wavefront OBJ file for use in other software (geometry only; planes, lights and exact mesh objects are not exact).

br3_open_in_bryceA

Open a scene in the running Bryce, using the message a second copy of Bryce sends when it is launched with a file. No focus, mouse or keyboard. It can replace the open scene, so pass confirm=true once the user agrees. Unsaved work stops it (see br3_render about discard_changes).

br3_render_resultA

Return the picture Bryce wrote next to a scene (same name, .bmp): a full-resolution real render, read from disk with no screen capture. Bryce has been seen writing it around the end of a render or on save. With export_name, also save it as a PNG.

hoverB

Point at a control without clicking. Bryce shows its name bottom-left.

clickB

Click at UI coordinates. A click can change or delete things: look first.

dragC

Drag: camera trackball, sliders, terrain painting, transform tools.

press_keysC

Press a combination such as ctrl+g, escape, shift+left or pagedown.

type_textA

Type into the focused field. Click the field first: in the main view, characters act as shortcuts.

list_menusA

List Bryce's menu (File, Edit, Objects, Help) with what is enabled right now. Does not take focus.

bryce_commandA

Run any item of Bryce's menu by window message, without focus, mouse or keyboard: for example render, undo, duplicate, replicate, select_all, group_objects, ungroup_objects, create_path, edit_object (the Terrain Editor for a terrain), attributes, edit_material, motion_lab, or a path such as "Edit/Multi-Replicate". Commands act on what is selected in Bryce. For commands that ask for a file use bryce_file_command. See list_menus.

bryce_file_commandB

Run a menu command that asks for a file and answer its Windows dialog, all by window message. open, merge and import_object read an existing file; the others write a new one. Bryce may then show its own options box; check the picture.

open_labA

Open one of Bryce's editors and show it. Select the object in Bryce first (a terrain for the Terrain Editor, any object for the Materials Lab). Work inside it with hover, click and drag, which use the bridge's virtual mouse once bryce_connect_bridge has been called, so the user's mouse stays free. Close it with its own OK or Cancel button. The sky lab is opened with a key press and is UNVERIFIED. Terrains, materials and most sky settings can also be edited in the scene file with br3_edit, which needs no lab at all.

bryce_dialogsA

Standard Windows dialogs Bryce has open (file pickers, questions), with their text and buttons. Boxes that Bryce draws itself show only in screenshot.

press_dialog_buttonB

Press a button, by its label, on a Windows dialog Bryce has open.

save_sceneA

Save the scene open in Bryce. Without a path it saves over the scene's own file; with a path (.br3) it uses Save As, and waits until the file is really written. Existing files are kept unless overwrite=true. By window message.

load_fileB

Load a file into the running Bryce: open a .br3 scene, merge a scene into the current one, or import a model (such as OBJ or DXF). When opening, unsaved decides about unsaved work: stop (default), save it first (to save_current_to), or discard it (only if the user said so). With the bridge connected, Bryce's "save your changes?" question is prevented or answered.

answer_save_boxA

Answer Bryce's own "Do you want to save your changes?" box, which is not a Windows dialog. dont_save and save need confirm=true. Uses the bridge's mouse.

submit_file_dialogA

Put a path in a Windows file dialog that Bryce already has open (for example one opened by the Terrain Editor's Picture button) and accept it.

generate_meshA

Write a model file for import into Bryce. (To put a new shape straight into a scene file, use br3_edit's mesh operation instead.) extrude: outline [[x,z],...] and height. lathe: profile [[radius,y],...] bottom to top. custom: vertices and zero-based faces, counter-clockwise from outside.

generate_heightmapC

Write a grayscale BMP for the Terrain Editor's picture import. shape: mountain, island, crater, canyon, dunes or plateau.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.8/5.0

Scored across 53 tools

Disambiguation2/5

The set has many overlapping clusters: multiple render tools, multiple scene-open/load paths, and both run_command and bryce_command can execute select_all/undo/duplicate-style actions. Descriptions often cross-reference alternatives, but the boundaries between UI automation, bridge commands, file editing, and scene editing remain confusing at the set level.

Naming Consistency3/5

Most names are snake_case and readable, but the convention is mixed: many are verb_noun, while terrain_* and br3_* tools use noun-prefixed or namespace-style names, and several primitives are bare verbs. It is still parseable, but not a predictable single pattern throughout.

Tool Count1/5

At 53 tools, the surface is extremely heavy and includes many fine-grained UI primitives plus multiple alternative workflows for rendering, loading, dialog handling, and scene editing. For the server's purpose it is over-fragmented rather than well-scoped.

Completeness4/5

Coverage is very broad: scene-file editing, terrain tools, animation, rendering, export, UI automation, and dialog handling are all present. There are minor gaps and several UNVERIFIED operations, but the major lifecycle areas are covered.