MCP ScannerCustom audit
All servers

sdimaging/cinema4d-mcp

Cinema 4D MCP — production fork (93 tools, +68 over upstream). Comprehensive Scene Nodes authoring/dissection (22 patterns, 802 templates, 40 verified labels), Octane OSL injection, fields, deformers, volume builders, scene snapshot/diff, recipe-based regression tests. C4D 2026 compatible.

Packagecinema4d-mcp
Version0.2.0 in pyproject.toml
Publishersdimaging community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 20Forks 1Last push 2026-11-08
Python 100.0%by source files the scanner reads
Code safety10.0Exposure3.4Prompts10.0Supply chain2.7Secrets10.0Transparency10.0
Analysis confidence74%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetynothing published yet10.0/10

Paths from tool input into commands, SQL, files and URLs

Capability Exposure3.4/10Poor

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain2.7/10Poor

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

Top risks in plain words

  • CRITICAL7 production dependencies have known vulnerabilities (worst: critical).
  • HIGHTool build_and_install_plugin runs programs by design: an agent steered by prompt injection can use it that way.
  • HIGHTools build_and_install_plugin, install_plugin, recipe_run, tap_octane_log read or write any file path by design: an agent steered by prompt injection can use them that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Run it in a container or a virtual machine

    build_and_install_plugin can start programs or run code they are given. Keep it away from your home folder, keys and other projects.

  • Give it only the folder it needs

    build_and_install_plugin, install_plugin, recipe_run, tap_octane_log can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need build_and_install_plugin, install_plugin, recipe_run and 1 more, switch them off.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Update its vulnerable packages

    Use anyio 4.14.2 or later, certifi 2026.10.18 or later, h11 0.16.0 or later, idna 3.15 or later and 3 more.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 115 tools, 3 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Start other programs on the machinecan run commands or launch programs
build_and_install_plugin
1 of 118
Read or write filesopen, create, change or delete files
doctor, recipe_run, tap_octane_log
3 of 118
Connect to the internet or other hostssend requests or open connections
add_effector, add_field_to_scene, add_primitive, animate_camera, apply_deformer, apply_dynamics and 107 more
113 of 118
Read passwords, tokens or keysload secrets such as API keys
add_effector, add_field_to_scene, add_primitive, animate_camera, apply_deformer, apply_dynamics and 106 more
112 of 118
Read environment variablesoften where API keys are kept
add_effector, add_field_to_scene, add_primitive, animate_camera, apply_deformer, apply_dynamics and 108 more
114 of 118
Touch sensitive locationssuch as ~/.ssh, cloud credentials or browser data
add_effector, add_field_to_scene, add_primitive, animate_camera, apply_deformer, apply_dynamics and 106 more
112 of 118

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • MCP_AUTH_TOKEN · add_effector, add_field_to_scene, add_primitive +109

113 request addresses could not be settled from the code (built at run time).

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • web or API responses113 tools · add_effector, add_field_to_scene, add_primitive +110
  • files3 tools · doctor, recipe_run, tap_octane_log

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (118: 115 tools, 3 resources)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

build_and_install_plugintool Build a C4D plugin via CMake and (optionally) deploy it to the C4D plugins folder.ProcessesEnv varsReads/writes filesRuns programs
Build a C4D plugin via CMake and (optionally) deploy it to the C4D plugins folder.

    SERVER-SIDE TOOL — runs subprocess on the host. Wraps the standard C4D SDK
    workflow:
        cmake --build <build_dir> --config Release --target <target>
        cp <build_dir>/bin/Release/plugins/<target>/<target>.xdl64 <install_dir>/
        cp -r plugins/<target>/res <install_dir>/

    Args:
        target: CMake target name (e.g. plugin module name)
        sdk_root: path to the C4D SDK root containing CMakeLists.txt.
                  Defaults to env var C4D_SDK_ROOT if set, else cwd.
        config: "Release" (default) or "Debug"
        build_dir: name of the build directory under sdk_root (default "_build_v143")
        install_dir: where to deploy. Defaults to env var C4D_PLUGINS_DIR + target,
                     else `/mnt/c/Program Files/Maxon Cinema 4D 2026/plugins/<target>`.
        cmake_cmd: explicit cmake binary path. Defaults to trying "cmake.exe" then "cmake".
        deploy: if True (default), also copy the built artifacts to install_dir after build.

    Returns build log + install summary. Does NOT restart C4D.
install_plugintool Copy a built C4D plugin (.xdl64 + res/) into Cinema 4D's plugin directory.Env varsReads/writes files
Copy a built C4D plugin (.xdl64 + res/) into Cinema 4D's plugin directory.

    SERVER-SIDE TOOL — works without a live C4D connection (file operation only).

    Args:
        source_dir: directory containing the built plugin. e.g.
                    `<sdk_root>/_build_v143/bin/Release/plugins/<PluginName>`.
                    Accepts WSL or Windows-native paths.
        install_dir: target directory. Defaults to env var C4D_PLUGINS_DIR if set,
                     otherwise `/mnt/c/Program Files/Maxon Cinema 4D 2026/plugins/<plugin_name>`.
        plugin_name: explicit plugin name. If omitted, derived from source_dir's basename.
        include_res: also copy the `res/` subdirectory (defaults True).
        overwrite: overwrite existing files in install_dir (defaults True).

    Returns a summary of files copied. **Note:** C4D must be restarted to load
    a freshly-installed compiled plugin — there's no hot-reload for .xdl64.
recipe_runtool Run a recipe — a JSON sequence of tool-calls + scene_assert checks.FilesNetworkCredentialsEnv varsSensitive pathsoutside textReads/writes files
Run a recipe — a JSON sequence of tool-calls + scene_assert checks.

    A recipe is the unit of regression testing: bundle a known-good
    operation sequence + the scene-state assertions that should hold,
    then run as one tool call. Accumulating a folder of recipes turns
    "did this still work after my last commit?" into a single call.

    Recipe schema:
      {
        "name": "<recipe_name>",
        "description": "...",
        "setup":     [{"command": "<cmd>", "args": {...}}, ...],
        "steps":     [{"name": "<step>",
                       "command": "<cmd>", "args": {...},
                       "assert": [<scene_assert assertion>, ...]}, ...],
        "teardown":  [{"command": "<cmd>", "args": {...}}, ...]
      }

    Args:
      recipe_path: path to a JSON recipe file (preferred — versioned in git)
      recipe: inline recipe dict (for ad-hoc one-shot use)
      stop_on_fail: if True, stop running steps after the first failure.
                    Default False — every step runs even if earlier ones fail,
                    so you see the full damage report.

    Returns:
      {ok, name, total_steps, passed, failed, results: [...], setup_results,
       teardown_results, duration_ms}
tap_octane_logtool Read recent lines from the C4D Octane plugin log file (`c4doctanelog.txt`).Filesoutside textReads/writes files
Read recent lines from the C4D Octane plugin log file (`c4doctanelog.txt`).

    SERVER-SIDE TOOL — does not require a live C4D connection. Reads the file
    directly from `%APPDATA%/Maxon/Maxon Cinema 4D <VER>_<HASH>/c4doctanelog.txt`.
    Auto-discovers the path by globbing if log_path is not provided; if multiple
    C4D versions are installed, prefers the highest-numbered (newest).

    Args:
        lines: how many trailing lines to return (default 200, max 5000)
        contains: case-insensitive substring filter on message content
        level: filter by log level — 'Info' | 'Warning' | 'Error'
        log_path: explicit path override (skip auto-discovery)
get_connection_statusresource Get the current connection status to Cinema 4D.Networkoutside text
Get the current connection status to Cinema 4D.
get_material_typesresource Get information about available Cinema 4D material types and their properties.
Get information about available Cinema 4D material types and their properties.
get_primitives_inforesource Get information about available Cinema 4D primitives.
Get information about available Cinema 4D primitives.
add_effectortool Add a MoGraph Effector to the scene.NetworkCredentialsEnv varsSensitive pathsoutside text
Add a MoGraph Effector to the scene.

    Args:
        effector_type: Type of effector (random, shader, field)
        name: Optional name for the effector
        target: Optional target object (e.g., cloner) to apply the effector to
add_field_to_scenetool Add a field object to the scene.NetworkCredentialsEnv varsSensitive pathsoutside text
Add a field object to the scene.

    Args:
      field_type: canonical name from list_field_types
                  (linear, spherical, box, cylinder, cone, random,
                  shader, formula, noise, ...)
      name: name for the new field (default = canonical type name)
      position: optional [x, y, z] world position
      size: optional [x, y, z] for shape fields
      parent_name: optional parent object name (groups under it instead
        of free top-level)

    Field objects generate the layered evaluation; you reference them
    from a FieldList parameter on an effector / vmap tag / selection /
    deformer to drive procedural behavior. Pair with bake_field_to_vmap
    to convert a field's per-point values into a static vertex map.

    UNSAFE — mutates scene.
add_primitivetool Add a primitive object to the Cinema 4D scene.NetworkCredentialsEnv varsSensitive pathsoutside text
Add a primitive object to the Cinema 4D scene.

    Args:
        primitive_type: Type of primitive (cube, sphere, cone, cylinder, plane, etc.)
        name: Optional name for the new object
        position: Optional [x, y, z] position
        size: Optional [x, y, z] size or dimensions
animate_cameratool Create a camera animation.NetworkCredentialsEnv varsSensitive pathsoutside text
Create a camera animation.

    Args:
        animation_type: Type of animation (wiggle, orbit, spline, linear)
        camera_name: Optional name of camera to animate
        positions: Optional list of [x,y,z] camera positions for keyframes
        frames: Optional list of frame numbers for keyframes
apply_deformertool Add a deformer as a child of the target object, optionally restrictedNetworkCredentialsEnv varsSensitive pathsoutside text
Add a deformer as a child of the target object, optionally restricted
    to a vertex map.

    Args:
      target: object to deform
      deformer_type: canonical name from list_deformer_types
                     (bend, twist, taper, shear, bulge, shrink_wrap, wrap,
                     smoothing, jiggle, bevel, spherify, displacer, ...)
      params: deformer-specific parameters. Common: size=[x,y,z],
              strength_deg, strength, radius, width, height, iterations.
              Run list_deformer_types for the per-type schema.
      name: name for the new deformer (default = deformer_type)
      restrict_vmap: vertex-map name on the target. When set, the deformer
                     gets a Restriction tag bound to that vmap so the
                     deformation is masked: 0 = no deform, 1 = full deform.
                     PAIRS WITH paint_vertex_map_from_formula / radial.

    Procedural-mask creative loop in 2 calls:
      1. paint_vertex_map_radial(target=Cube, vmap_name=mask, radius=80,
                                 falloff=smooth)
      2. apply_deformer(target=Cube, deformer_type=bend,
                        params={strength_deg: 60}, restrict_vmap=mask)
      → Cube bends only inside the radial mask. Full procedural workflow.

    UNSAFE — mutates the scene. Wrap in begin/end_undo_group for
    reversibility.
apply_dynamicstool Add dynamics (rigid or soft) to the specified object.NetworkCredentialsEnv varsSensitive pathsoutside text
Add dynamics (rigid or soft) to the specified object.

    Args:
        object_name: Name of the object to apply dynamics to
        dynamics_type: Type of dynamics to apply (rigid, soft)
apply_materialtool Apply a material to an object.NetworkCredentialsEnv varsSensitive pathsoutside text
Apply a material to an object.

    Args:
        material_name: Name of the material to apply
        object_name: Name of the object to apply the material to
apply_mograph_fieldstool Create and apply a MoGraph Field.NetworkCredentialsEnv varsSensitive pathsoutside text
Create and apply a MoGraph Field.

    Args:
        field_type: Type of field (spherical, box, cylindrical, linear, radial, noise)
        target: Optional target object to apply the field to
        field_name: Optional name for the field
        parameters: Optional parameters for the field (strength, falloff)
apply_shadertool Create and apply a specialized shader material.NetworkCredentialsEnv varsSensitive pathsoutside text
Create and apply a specialized shader material.

    Args:
        shader_type: Type of shader (noise, gradient, fresnel, etc)
        material_name: Optional name of material to apply shader to
        object_name: Optional name of object to apply the material to
bake_field_to_vmaptool Sample a field at every vertex of a target mesh, write to a vmap.NetworkCredentialsEnv varsSensitive pathsoutside text
Sample a field at every vertex of a target mesh, write to a vmap.

    Bridge from procedural field evaluation to vmap-driven downstream tools
    (threshold-to-poly-selection, masked deformer restriction, etc).

    Args:
      field_target: name of the field object to sample
      dest_object: poly mesh whose vertices will be sampled
      vmap_name: name of the vmap to write (created if missing, overwritten)
      space: 'world' (default) or 'local' for sampling positions

    Uses c4d.modules.mograph.FieldList + FieldInput / FieldOutput. Field's
    transform is honored automatically — sampling happens in world space
    with the field's matrix factored in.

    Pattern (procedural creative loop):
      add_field_to_scene("spherical", name="MaskField", position=[0,100,0], size=[200,200,200])
      bake_field_to_vmap("MaskField", "MyMesh", vmap_name="mask")
      vertex_map_threshold_to_polygon_selection("MyMesh", vmap="mask", threshold=0.5)
      apply_deformer("MyMesh", "bend", restrict_vmap="mask")
      → procedural masked deformation driven by a SPATIAL field.

    UNSAFE — mutates dest's vmap.
begin_undo_grouptool Open a C4D undo group: every mutation until end_undo_group is mergedNetworkCredentialsEnv varsSensitive pathsoutside text
Open a C4D undo group: every mutation until end_undo_group is merged
    into ONE undo step in C4D's history.

    Pattern for any multi-step Claude operation that should be reversible
    as a unit:
      begin_undo_group("Build chair frame")
      add_primitive(...)
      modify_object(...)
      run_modeling_command(...)
      end_undo_group()
      # User pressing Cmd-Z now undoes the entire build, not just the last op.

    Args:
      name: human-readable label shown in C4D's Edit > Undo menu.

    Always pair with end_undo_group. Nesting is permitted (C4D handles it
    via internal counter); the response includes a stack-depth warning if
    you nest unintentionally.
cinema4d_knowledge_gettool Fetch a curated knowledge file (or a specific markdown section).NetworkCredentialsEnv varsSensitive pathsoutside text
Fetch a curated knowledge file (or a specific markdown section).

    Args:
      path: relative path under docs/ or data/, e.g.
            "docs/scene_nodes_nodebase_study.md" or "data/scene_nodes_atlas.json"
      section: optional markdown heading text (case-insensitive substring match);
               returns only that section's body. Ignored for non-markdown.
      max_bytes: cap on returned content (default 200000 ≈ 200 KB).

    Use cinema4d_knowledge_index first to discover available paths.
    Read-only.
cinema4d_knowledge_indextool Return the curated cinema4d-mcp knowledge manifest.NetworkCredentialsEnv varsSensitive pathsoutside text
Return the curated cinema4d-mcp knowledge manifest.

    The MCP ships with a small set of carefully curated reference material
    (Scene Nodes recipes, C4D 2026 API gotchas, asset indexes, etc.) that
    captures production-grade C4D knowledge not in any LLM's training data.
    Call this first to discover what topics are available, then use
    cinema4d_knowledge_get to fetch a specific doc or section, or
    cinema4d_knowledge_search to grep across the tree. Read-only.
cinema4d_knowledge_searchtool Grep across the curated knowledge tree (docs/ + data/).NetworkCredentialsEnv varsSensitive pathsoutside text
Grep across the curated knowledge tree (docs/ + data/).

    Args:
      query: substring to match (case-insensitive, min 2 chars).
      max_matches: cap on returned matches (default 100).
      extensions: file extensions to search, e.g. ["md", "json"].
                  Defaults to both.

    Returns matches with path + line number + snippet. Use
    cinema4d_knowledge_get to fetch the surrounding context. Read-only.
clear_action_logtool Empty the MCP action log buffer. If include_ui=True, also clearsNetworkCredentialsEnv varsSensitive pathsoutside text
Empty the MCP action log buffer. If include_ui=True, also clears
    the UI action log buffer.
clear_console_logtool Empty the MCP console log ring buffer (does NOT clear C4D's own console window).NetworkCredentialsEnv varsSensitive pathsoutside text
Empty the MCP console log ring buffer (does NOT clear C4D's own console window).
create_abstract_shapetool Create an organic, abstract shape.NetworkCredentialsEnv varsSensitive pathsoutside text
Create an organic, abstract shape.

    Args:
        shape_type: Type of shape (blob, metaball)
        name: Optional name for the shape
create_cameratool Create a new camera in the scene.NetworkCredentialsEnv varsSensitive pathsoutside text
Create a new camera in the scene.

    Args:
        name: Optional name for the new camera.
        position: Optional [x, y, z] position.
        properties: Optional dictionary of camera properties (e.g., {"focal_length": 50}).
create_lighttool Add a light to the scene.NetworkCredentialsEnv varsSensitive pathsoutside text
Add a light to the scene.

    Args:
        light_type: Type of light (area, dome, spot)
        name: Optional name for the light
create_materialtool Create a new material in Cinema 4D.NetworkCredentialsEnv varsSensitive pathsoutside text
Create a new material in Cinema 4D.

    Args:
        name: Name for the new material
        color: Optional [R, G, B] color (values 0-1)
        properties: Optional additional material properties
create_mograph_clonertool Create a MoGraph Cloner object of specified type.NetworkCredentialsEnv varsSensitive pathsoutside text
Create a MoGraph Cloner object of specified type.

    Args:
        cloner_type: Type of cloner (grid, radial, linear)
        name: Optional name for the cloner
create_soft_bodytool Add soft body dynamics to the specified object.NetworkCredentialsEnv varsSensitive pathsoutside text
Add soft body dynamics to the specified object.

    Args:
        object_name: Name of the object to convert to a soft body
create_via_commandtool Execute c4d.CallCommand(command_id) and return the new active object.NetworkCredentialsEnv varsSensitive pathsoutside text
Execute c4d.CallCommand(command_id) and return the new active object.

    Use this for plugin objects that can't be instantiated via BaseObject.Alloc() —
    notably Octane lights/cameras/postprocess, which require the CallCommand pattern.
    Example: command_id=1033864 creates an Octane Area Light.

    Pass `object_name` to rename the new object after creation.
create_volume_buildertool Create a Volume Builder generator that combines source objects via voxels.NetworkCredentialsEnv varsSensitive pathsoutside text
Create a Volume Builder generator that combines source objects via voxels.

    Args:
      source_objects: list of object names to feed into the builder. Each
        is cloned (originals preserved) and parented under the new builder.
      voxel_size: voxel size in scene units (default 5.0). Smaller = more
        detail, slower.
      mode: 'union' (default) | 'subtract' | 'intersect'
      name: name for the new generator (default 'VolumeBuilder')

    Voxel-based modeling unlocks organic blobs, smooth booleans, fluid-like
    geometry from sparse inputs. Pair with create_volume_mesher to get a
    polygon output, then volume_to_polygons to bake.
create_volume_meshertool Convert a Volume Builder's voxel output to a polygon mesh.NetworkCredentialsEnv varsSensitive pathsoutside text
Convert a Volume Builder's voxel output to a polygon mesh.

    Args:
      volume_target: name of the Volume Builder (or any volume-emitting
        object). It's parented under the new mesher.
      threshold: SDF threshold for surface extraction (default 0.5).
      voxel_size: optional output mesh resolution (defaults to source).
      name: name for the new mesher (default 'VolumeMesher').
doctortool Run a series of health checks against the live MCP/plugin/C4D bridge.FilesNetworkCredentialsEnv varsSensitive pathsoutside text
Run a series of health checks against the live MCP/plugin/C4D bridge.

    Plugin-side checks (each independent — failure of one doesn't prevent the others):
      1. Main thread responsive (round-trip a no-op via execute_on_main_thread)
      2. Active document accessible
      3. Active BaseDraw + camera ready
      4. Console log buffer hook installed
      5. Auth state

    Args:
      with_smoke_recipe: if True, ALSO run scene_snapshot_diff_roundtrip
        as a smoke test. Verifies end-to-end creative-loop machinery
        (snapshot + mutate + assert) works, not just plumbing. Adds ~100ms.

    Use this when something feels off — wedged main thread, "no active doc",
    or the socket is responding but tools aren't behaving. Returns structured
    pass/fail with timing info per check.
dump_material_graphtool Walk and dump the shader/node graph of a material (or any shader-bearing object/tag).NetworkCredentialsEnv varsSensitive pathsoutside text
Walk and dump the shader/node graph of a material (or any shader-bearing object/tag).

    Provide `material_name` to dump a specific material from the doc.GetMaterials() list,
    OR `object_name`/`guid` to dump shaders attached to that object (covers Octane Area
    Lights' emission-shader inputs, OctaneTag shader graphs on objects, etc.).

    Returns a tree of {name, type_id, guid, params, children}. Each node's params
    include the first ~30 description parameters with their current values — usually
    enough to identify what an Octane node does and where its inputs live.
dump_object_treetool Dump the scene hierarchy as a flat list of {depth, name, type, guid}.NetworkCredentialsEnv varsSensitive pathsoutside text
Dump the scene hierarchy as a flat list of {depth, name, type, guid}.
    Pass `root_name` or `root_guid` to start from a specific subtree; omit both
    to dump the entire scene from the document root.
end_undo_grouptool Close the most recently opened undo group. Pairs with begin_undo_group.NetworkCredentialsEnv varsSensitive pathsoutside text
Close the most recently opened undo group. Pairs with begin_undo_group.

    Idempotency note: calling without an open group returns ok=False with a
    clear error — never a silent no-op.
enumerate_descidstool Enumerate every parameter (DescID) of a Cinema 4D object.NetworkCredentialsEnv varsSensitive pathsoutside text
Enumerate every parameter (DescID) of a Cinema 4D object.

    THIS IS THE MOST IMPORTANT TOOL FOR DISCOVERING UNDOCUMENTED PLUGIN
    PARAMETER IDS. Use it to find Octane Area Light's texture/distribution
    input, Redshift node parameters, third-party tag IDs, etc. Mirrors
    the workflow of C4D's Customize Palettes attribute inspector.

    Provide either `object_name` or `guid` to identify the target object.
    Filter the result with `name_filter` (case-insensitive substring) or
    `name_pattern` (fnmatch wildcard) to narrow large parameter sets —
    e.g. name_filter="texture" surfaces texture-related params on an
    Octane light in seconds.

    Set `top_level_only=True` to skip nested group parameters.
enumerate_octane_pluginstool List all loaded Octane-related plugins (objects, commands, shaders, materials, tags, videoposts).NetworkCredentialsEnv varsSensitive pathsoutside text
List all loaded Octane-related plugins (objects, commands, shaders, materials, tags, videoposts).

    Octane registers plugins across many types. This wraps `list_installed_plugins`
    with a name filter for 'octane' (and 'oct' for short-name variants). Pass
    `name_contains` to further narrow (e.g. 'image texture', 'area light',
    'directional').
enumerate_userdatatool Enumerate the User Data container on an object (separate from regular Description params).NetworkCredentialsEnv varsSensitive pathsoutside text
Enumerate the User Data container on an object (separate from regular Description params).
execute_python_scripttool Execute a Python script in Cinema 4D's Python environment.NetworkCredentialsEnv varsSensitive pathsoutside text
Execute a Python script in Cinema 4D's Python environment.

    This is the most reliable tool for non-trivial operations — it gives full access
    to the c4d API and avoids wrapper/schema mismatches that can affect other tools.

    Args:
        script: Python code to execute in Cinema 4D. Has access to `c4d` and
            `c4d.modules.mograph` modules.

    Important usage notes:
        - For animated/MoGraph data, always call doc.ExecutePasses() after SetTime():
            doc.SetTime(c4d.BaseTime(frame, fps))
            doc.ExecutePasses(None, True, True, True, c4d.BUILDFLAGS_NONE)
        - For MoGraph/effector data, iterate frames sequentially (0..N) rather than
          jumping directly to a later frame — sequential stepping produces more
          faithful results.
        - Security restrictions block certain keywords: import os, subprocess, exec(, eval(.
          Keep scripts within the c4d API surface.
        - For heavy operations (dense frame loops, complex MoGraph scenes), split work
          into multiple smaller scripts rather than one large monolith.
        - Use print() to return results — output is captured and returned.
export_action_logtool Write the MCP action log to a JSON file at file_path (absolute path).NetworkCredentialsEnv varsSensitive pathsoutside text
Write the MCP action log to a JSON file at file_path (absolute path).
    Useful for archiving session traces or generating replay scripts.
export_ui_action_logtool Write the UI action log to a JSON file at file_path (absolute path).NetworkCredentialsEnv varsSensitive pathsoutside text
Write the UI action log to a JSON file at file_path (absolute path).
    Includes scene_name + fps in the payload header.
find_command_by_nametool Find C4D commands (CallCommand-able plugin commands) matching a name substring.NetworkCredentialsEnv varsSensitive pathsoutside text
Find C4D commands (CallCommand-able plugin commands) matching a name substring.

    Use this to discover the integer command ID for things like 'Octane Area Light',
    'Redshift Sun', 'Alembic Export', etc. Once you have the ID, pass it to
    `create_via_command` to actually invoke it.

    Example: name_contains="area light" → returns ids for 'Light' (Octane Area), 'Area Light' (C4D), etc.
find_objectstool Find scene objects matching name pattern, substring, and/or type id.NetworkCredentialsEnv varsSensitive pathsoutside text
Find scene objects matching name pattern, substring, and/or type id.

    Combine filters AND-style. Examples:
      - name_pattern="Cube*" matches "Cube", "Cube.1", "Cube_test"
      - name_contains="light" — case-insensitive substring match
      - type_id=5159 — exact type match (c4d.Ocube)
      - type_id_min=1029525, type_id_max=1029999 — Octane-plugin ID range scan

    Results include name, type, type_id, guid, and depth in the hierarchy.
get_action_logtool Return the MCP action log buffer — recent commands the MCP dispatcherNetworkCredentialsEnv varsSensitive pathsoutside text
Return the MCP action log buffer — recent commands the MCP dispatcher
    executed, sanitized (no code/script payloads, just operation + safe params).
    Useful for "what did the AI just do?" audit trails or replay.

    Args:
      limit: return only the last N events (default: full buffer, capped at 500)
get_active_renderertool Return the active document's renderer id, name, and resolution.NetworkCredentialsEnv varsSensitive pathsoutside text
Return the active document's renderer id, name, and resolution.
get_c4d_infotool Return C4D environment info: version, Python version, install paths, prefs path,NetworkCredentialsEnv varsSensitive pathsoutside text
Return C4D environment info: version, Python version, install paths, prefs path,
    active document, and Cinema 4D MCP buffer state. Useful for diagnostics.
get_capabilitiestool Capability snapshot: plugin version, C4D version, available renderNetworkCredentialsEnv varsSensitive pathsoutside text
Capability snapshot: plugin version, C4D version, available render
    engines, supported commands (with safe vs unsafe partition), MCP_AUTH_TOKEN
    state, and a cheap document summary (object/material counts, fps, frame).

    Call this once at session start to discover what this build of the MCP
    can do — avoids trial-and-error probing and lets a client cache the tool
    surface. Returns structured JSON.
get_console_logtool Read recent entries from the MCP console log buffer.NetworkCredentialsEnv varsSensitive pathsoutside text
Read recent entries from the MCP console log buffer.

    Captures both Cinema 4D's c4d.GePrint() output (via runtime hook installed
    when the socket server starts) AND the plugin's internal self.log() messages.
    This lets the MCP client see what's happening in C4D without manually
    inspecting the console window.

    Filters:
      - limit: max number of entries to return (default 200, newest last)
      - since_ts: only entries with timestamp > since_ts (epoch seconds)
      - source: filter by source — 'plugin', 'c4d.GePrint', or 'mcp'
      - contains: case-insensitive substring filter on message content
get_object_infotool Return comprehensive info on a single object: name, type, GUID, transform,NetworkCredentialsEnv varsSensitive pathsoutside text
Return comprehensive info on a single object: name, type, GUID, transform,
    visibility flags, layer, parent, child count, and all tags.
get_parametertool Read an arbitrary parameter from any object/tag/material.NetworkCredentialsEnv varsSensitive pathsoutside text
Read an arbitrary parameter from any object/tag/material.

    Lowest-level read primitive. Works for ANY parameter — common ones,
    renderer-specific (Octane/Redshift), plugin-specific, custom user-data.

    Args:
      target: object name (or material/tag name depending on target_kind)
      parameter: int (raw id e.g. 1100), str (c4d constant name e.g.
                 "PRIM_CUBE_LEN"), or list (DescID structure: just [id]
                 for single-level, or [[id, dtype, creator], ...] for full)
      target_kind: 'object' (default) | 'material' | 'tag'
      tag_name: required if target_kind='tag' — name of the tag

    Returns: {target, parameter_resolved, value, value_type}.
    Vectors come back as [x,y,z], matrices as {off, v1, v2, v3} dicts,
    primitives unchanged. Read-only.

    Example:
      get_parameter(target="MyCube", parameter="PRIM_CUBE_LEN")
      → {value: [200.0, 200.0, 200.0], value_type: "Vector"}
get_scene_infotool Get information about the current Cinema 4D scene.NetworkCredentialsEnv varsSensitive pathsoutside text
Get information about the current Cinema 4D scene.
get_ui_action_logtool Return the UI action log buffer — user actions observed in C4D's UINetworkCredentialsEnv varsSensitive pathsoutside text
Return the UI action log buffer — user actions observed in C4D's UI
    (object create/delete, selection changes, transform edits, time changes,
    keyframe add/delete) populated by the UiActionObserver MessageData
    plugin polling every 400ms.

    Useful for: "what has the user done since I last looked?" / replay
    user demos / Cursor skill-generation workflows.

    Args:
      limit: return only the last N events (default: full buffer, capped at 2000)
get_viewport_statetool Return the active viewport's state: dimensions, frame rect, active camera matrix,NetworkCredentialsEnv varsSensitive pathsoutside text
Return the active viewport's state: dimensions, frame rect, active camera matrix,
    projection mode, and active renderer. Useful for debugging plugin viewport draws.
group_objectstool Group multiple objects under a null object.NetworkCredentialsEnv varsSensitive pathsoutside text
Group multiple objects under a null object.

    Args:
        object_names: List of object names to group
        group_name: Optional name for the group
image_inspecttool Inspect a saved PNG file: dimensions, file size, MD5, content stats.NetworkCredentialsEnv varsSensitive pathsoutside text
Inspect a saved PNG file: dimensions, file size, MD5, content stats.

    Server-side — does not roundtrip to C4D for the file read but does
    use C4D's BaseBitmap for pixel sampling. Use after viewport_screenshot
    to verify the saved file looks plausible (non-blank, expected dims),
    or to fingerprint a save for later comparison.

    Returns:
      - md5, file_size_bytes, width, height, bit_depth, color_type
      - sample_min/max/mean/stddev (10x10 grid of pixel grayscale samples)
      - is_blank (stddev < 1.0 — uniform color, no rendered content)
      - has_content (inverse, for positive-asserting code)

    Pair with images_compare(paths=[...]) to detect "I saved 6 things and
    they're all identical" — the failure mode that produced the
    validation_shots regression.
images_comparetool Compare a list of PNG files for byte-identical duplicates.NetworkCredentialsEnv varsSensitive pathsoutside text
Compare a list of PNG files for byte-identical duplicates.

    Returns:
      - all_unique (bool): True iff every file has a distinct MD5
      - unique_count, total_count
      - duplicate_groups: {md5: [paths]} for any group with >1 file —
        the "all my saves are identical" detector
      - per_file: ordered list with md5, size, or per-file error

    THE TOOL THAT WOULD HAVE CAUGHT the 6-shading-shots-all-identical
    failure. Run this after any batch of viewport_screenshot saves where
    you expect the outputs to differ. If `all_unique` is False, your
    upstream tool isn't actually changing what it claims to change.
inspect_redshift_materialstool Inspect Redshift materials with best-effort fallbacks.NetworkCredentialsEnv varsSensitive pathsoutside text
Inspect Redshift materials with best-effort fallbacks.

    This tool is read-only and is designed to be useful even when the Redshift
    Python runtime is unavailable. It can still report names, assignments,
    preview-derived colors, readable description/container fields, and will
    attempt graph inspection only when Cinema 4D exposes that data.

    Args:
        material_name: Optional material name filter
        include_assignments: Include texture-tag assignments in the scene
        include_preview: Include sampled preview bitmap color data
        include_description: Include readable description entries
        include_container: Include safe BaseContainer values
        include_graph: Attempt node-graph inspection when available
link_shader_to_parametertool Create a shader, optionally configure it, and link it as the value of a parameterNetworkCredentialsEnv varsSensitive pathsoutside text
Create a shader, optionally configure it, and link it as the value of a parameter
    on a target object/material/light.

    Killer helper for any "create shader, configure, link to parameter" workflow.
    Once you've discovered the Octane Image Texture shader plugin ID and the Area
    Light's texture parameter ID (via enumerate_octane_plugins + enumerate_descids),
    call this with shader_params={"file": "/path/to/canvas.png", ...} to wire it up
    in one shot.

    Args:
        target_name / target_guid: the receiver (object, material, light)
        parameter_path (list[int]): explicit DescID path on target; OR
        parameter_name (str): substring match on parameter name (auto-resolves)
        shader_plugin_id: plugin ID of the shader to create (e.g. Octane ImageTexture)
        shader_params: dict of {param_id_or_name_substring: value} to set on the new shader
                       Examples:
                         {"file": "/tmp/x.png"}        — fuzzy match by name
                         {1003: "/tmp/x.png"}          — explicit param id
list_deformer_typestool Discover what deformer types this C4D build supports + their defaultNetworkCredentialsEnv varsSensitive pathsoutside text
Discover what deformer types this C4D build supports + their default
    parameter shape.

    Read-only. Run before apply_deformer to know:
      - which deformers exist (some build configurations omit constants)
      - which canonical params each accepts (size, strength_deg, radius, ...)
      - the underlying type_id (for advanced use)
list_field_typestool Discover what field object types this C4D build supports + defaultNetworkCredentialsEnv varsSensitive pathsoutside text
Discover what field object types this C4D build supports + default
    parameter shape.

    Fields are layered evaluators that produce scalar/vector/color values
    at points in 3D space. They drive MoGraph effectors, vertex maps,
    selections, and some deformers.

    Read-only. Run before add_field_to_scene to know the type catalog.
list_installed_pluginstool List loaded Cinema 4D plugins, filterable by type, id, or name.NetworkCredentialsEnv varsSensitive pathsoutside text
List loaded Cinema 4D plugins, filterable by type, id, or name.

    plugin_type options: 'object', 'tag', 'shader', 'material', 'command',
    'tool', 'node', 'bitmapsaver', 'bitmaploader', 'videopost', 'sculptbrush',
    'falloff', 'field', 'all' (default).

    Use id_min/id_max to scan a plugin ID range — invaluable for discovering
    Octane/Redshift/third-party plugins. Example: id_min=1029525, id_max=1030000
    to enumerate plugins in Octane's typical range.
list_objectstool List all objects in the current Cinema 4D scene.NetworkCredentialsEnv varsSensitive pathsoutside text
List all objects in the current Cinema 4D scene.

    If this tool returns a validation error, use execute_python_script as a fallback
    to traverse the object hierarchy manually via the c4d API.
list_osl_snippetstool Return the curated set of OSL snippets shipped with the plugin.NetworkCredentialsEnv varsSensitive pathsoutside text
Return the curated set of OSL snippets shipped with the plugin.

    Snippets are seed code for octane_create_osl_texture — drop in,
    iterate from there. Currently shipped:
      - constant_red: minimum viable shader
      - uv_gradient: u/v as r/g color
      - checker: classic checkerboard
      - polar_warp: radial gradient from UV center
list_render_enginestool List all registered render engines (VideoPost plugins) and flag the active one.NetworkCredentialsEnv varsSensitive pathsoutside text
List all registered render engines (VideoPost plugins) and flag the active one.

    Critical for verifying that custom viewport-renderer plugins (custom GLSL
    shaders, third-party engines, etc.) registered correctly. Also surfaces
    Octane, Redshift, Arnold, Standard, etc. with their plugin IDs.
load_scenetool Load a Cinema 4D scene file.NetworkCredentialsEnv varsSensitive pathsoutside text
Load a Cinema 4D scene file.

    Args:
        file_path: Path to the scene file to load
modify_objecttool Modify properties of an existing object.NetworkCredentialsEnv varsSensitive pathsoutside text
Modify properties of an existing object.

    Args:
        object_name: Name of the object to modify
        properties: Dictionary of properties to modify (position, rotation, scale, etc.)
octane_create_osl_texturetool Create an Octane OSL texture shader with the given source.NetworkCredentialsEnv varsSensitive pathsoutside text
Create an Octane OSL texture shader with the given source.

    OSL (Open Shading Language) is the standard programmable shader
    language Octane / Arnold / Cycles / V-Ray all support. This tool
    creates an Octane OSL Texture shader, sets the source code, and
    optionally inserts it into a material channel.

    Args:
      source_code: OSL source as a string. Mutually exclusive with snippet.
      snippet: shorthand for one of the canned snippets (see list_osl_snippets).
        If both source_code and snippet are set, snippet wins.
      name: shader name (default "OSL")
      auto_compile: compile on parameter change (default True)
      host_material: name of an existing material to drop the shader into.
        If None, returns an orphan shader the user wires up manually.
      host_channel: which channel to link in the host material — diffuse,
        emission/luminance, transparency, reflection, alpha, bump, normal.
        Default: diffuse.

    Returns: shader name + GUID + compile_log (any compile errors) +
    source preview + warnings.

    Pattern (programmatic shading):
      mat = create_material(name="MyShaded", color=[0.2, 0.2, 0.2])
      octane_create_osl_texture(snippet="checker", host_material="MyShaded",
                                host_channel="diffuse")
      apply_material("MyShaded", "MyObject")
      → object now has a procedural OSL checkerboard.

    Octane plugin must be loaded; if not, returns a clear error.
octane_set_camera_to_osltool Set an Octane Camera tag on a CameraObject to OSL mode + inject source.NetworkCredentialsEnv varsSensitive pathsoutside text
Set an Octane Camera tag on a CameraObject to OSL mode + inject source.

    Octane's OSL Camera lets you write per-pixel ray-generation as OSL.
    Use cases: custom fisheye projections, anamorphic squeeze, post-FX
    distortions baked into camera rays, panoramic-cube layouts, weird
    artistic projections.

    Args:
      camera_target: name of the C4D CameraObject. If it doesn't have an
        Octane Camera tag, one is added.
      source_code: OSL source as a string (mutually exclusive with snippet)
      snippet: shorthand for one of the canned camera snippets:
        camera_pinhole, camera_fisheye_180, camera_anamorphic_squeeze,
        camera_vortex. Snippet wins if both supplied.
      baking: True → use OSL_BAKING mode (4) instead of OSL mode (3).
        For UV-baking workflows where you want OSL ray generation during
        a bake pass.
      auto_compile: compile on parameter change (default True)
      name: name for the new Octane Camera tag (default "Octane Camera")

    Pattern (custom-projection workflow):
      create_camera(name="MyCam")
      octane_set_camera_to_osl(camera_target="MyCam",
                               snippet="camera_fisheye_180")
      → camera now renders through a 180-degree fisheye OSL shader in
        Octane's render pipeline.

    UNSAFE — mutates the target camera. Octane plugin must be loaded.
paint_vertex_map_from_formulatool Paint a vertex map by evaluating a math formula per vertex.NetworkCredentialsEnv varsSensitive pathsoutside text
Paint a vertex map by evaluating a math formula per vertex.

    Available variables in the formula:
      - x, y, z   : object-local vertex coords
      - wx, wy, wz: world-space vertex coords
      - i         : 0-based vertex index
      - n         : total vertex count
      - bx, by, bz: object-local bbox center
      - rx, ry, rz: object-local bbox half-extent

    Available functions:
      sin, cos, tan, asin, acos, atan, atan2,
      sqrt, exp, log, log2, log10, floor, ceil,
      abs, min, max, pow, pi, e, tau,
      clamp(v, a, b), lerp(a, b, t), smoothstep(a, b, x).

    No imports / builtins reachable — sandboxed AST eval. Result is
    clamped to [0, 1] by default (set clamp=False to write raw values).

    Example formulas:
      "sin(x * 0.05) * 0.5 + 0.5"            # horizontal wave
      "smoothstep(0, 100, sqrt(x*x + z*z))"  # radial gradient
      "abs(sin(x*0.05) * cos(z*0.05))"       # checker-like
      "1.0 if y > 0 else 0.0"                # half-mask
paint_vertex_map_radialtool Paint a vertex map with a radial gradient from a center point.NetworkCredentialsEnv varsSensitive pathsoutside text
Paint a vertex map with a radial gradient from a center point.

    Args:
      target: poly mesh name
      vmap_name: name of the vmap (created if missing, overwritten if exists)
      center: [x, y, z] center point (default: object bbox center)
      radius: distance at which gradient hits outer_value (default: bbox max-radius)
      inner_value: weight at the center (default 1.0)
      outer_value: weight at radius and beyond (default 0.0)
      falloff: 'linear' (default) | 'smooth' (smoothstep) | 'quadratic'
      space: 'local' (default — use vert local coords) or 'world'

    Example: paint a soft circular mask at world origin with radius 200,
    inner=1.0 outer=0.0, smooth falloff — perfect for driving a Bevel
    deformer's strength via a vertex map.
pingtool Cheapest possible liveness probe.NetworkCredentialsEnv varsSensitive pathsoutside text
Cheapest possible liveness probe.

    Returns plugin version, C4D version, server time, and an echoed string
    (truncated to 1KB) so a client can correlate beyond request_id.

    Use for heartbeat / connection health checks. Does NOT touch C4D state,
    does NOT acquire the main thread. Safe to call thousands of times per
    minute. If you need scene-state info too, use `doctor` instead.

    Args:
      echo: optional string echoed back in the response. Useful for
            client-side correlation when you have many concurrent pings.
redotool Redo the most recently undone C4D undo group(s) — Cmd/Ctrl-Shift-Z.NetworkCredentialsEnv varsSensitive pathsoutside text
Redo the most recently undone C4D undo group(s) — Cmd/Ctrl-Shift-Z.

    Args:
      steps: how many redo groups to replay (default 1, max 100).
render_frametool Render the current frame.NetworkCredentialsEnv varsSensitive pathsoutside text
Render the current frame.

    Args:
        output_path: Optional path to save the rendered image
        width: Optional render width in pixels
        height: Optional render height in pixels
render_previewtool Render the current view and return a base64-encoded preview image.NetworkCredentialsEnv varsSensitive pathsoutside text
Render the current view and return a base64-encoded preview image.

    Args:
        width: Optional preview width in pixels
        height: Optional preview height in pixels
        frame: Optional frame number to render
run_modeling_commandtool Run a Cinema 4D modeling command (`SendModelingCommand`) on one or more objects.NetworkCredentialsEnv varsSensitive pathsoutside text
Run a Cinema 4D modeling command (`SendModelingCommand`) on one or more objects.

    Wraps the most-needed C4D modeling operations. For ops that operate on
    selections (bevel, inset, smooth on selected polys), use `mode` to
    specify the selection level.

    Args:
      op: canonical op name. Supported:
        - 'axis_center'             — recenter the object's axis to its bbox
                                       center (the canonical fix for
                                       post-Disconnect/Split frozen-coord polys).
                                       Params: center_mode='bbox' | 'world_center' | 'keep'
        - 'optimize'                — weld coincident verts, drop unused points,
                                       merge redundant polys.
                                       Params: tolerance (float, scene units, default 0.01),
                                               merge_points (bool, default True),
                                               merge_polys (bool, default True),
                                               remove_unused (bool, default True)
        - 'make_editable'           — convert generators (primitives, sweeps,
                                       lofts, etc.) to editable polygon meshes.
                                       Equivalent to pressing 'C' in C4D.
        - 'current_state_to_object' — bake generator output into a static mesh
                                       at its current evaluation state.
                                       Same effect for primitives;
                                       different for SDS/cloners (bakes
                                       smooth/clone state, not just makes editable).
        - 'subdivide'               — subdivide each polygon.
                                       Params: levels (int, default 1),
                                               hyper (bool, default False;
                                               True = HyperNURBS-style smoothing).
        - 'smooth'                  — laplacian smooth on points / point selection.
                                       Params: strength, iterations, smooth_type
        - 'bevel'                   — bevel selected edges.
                                       Params: offset, subdivision
        - 'inset'                   — inner-extrude selected polys.
        - 'extrude'                 — extrude selected polys.
        - 'connect' / 'split' / 'disconnect' / 'delete'
        - 'polygonize' / 'triangulate' / 'untriangulate'

      targets: list of object names or GUIDs. If empty/None, uses the
        current Object Manager selection.
      params: op-specific keyword args (see per-op notes above). Optional.
      mode: 'all' | 'points' | 'edges' | 'polygons' — selection level the
        command operates on. Default 'all'.

    Returns: per-target status including any newly created objects (e.g.
    make_editable returns a new editable mesh; the original generator is
    replaced).

    Examples:
      - Recenter axes on every selected piece (the post-Split fix):
          run_modeling_command(op='axis_center')
      - Weld coincident verts on the active mesh:
          run_modeling_command(op='optimize', params={'tolerance': 0.01})
      - Bake a Cloner's output into static geometry:
          run_modeling_command(op='current_state_to_object', targets=['MyCloner'])
sample_bitmap_at_uvtool Sample a bitmap at every vertex's UV coord, write to a vertex map.NetworkCredentialsEnv varsSensitive pathsoutside text
Sample a bitmap at every vertex's UV coord, write to a vertex map.

    The "Photoshop mask → procedural mesh attribute" bridge. Lets you paint
    a black/white mask (or any image) externally, save as PNG, and bake
    the per-pixel values into a vertex map on the mesh — at which point
    every other procedural tool that takes a vertex map (Field source,
    threshold-to-polygon-selection, MoGraph effector, etc.) can drive off it.

    For each vertex, the per-vertex UV is computed by averaging the UVs
    from all polygons referencing it (handles UV seams gracefully — verts
    on a seam end up with one of their UV positions, doesn't matter which
    since both correspond to the same 3D point).

    Args:
      bitmap_path: file path of source bitmap (any format C4D supports).
      target: object name; defaults to active selection.
      vmap_name: name of the output vertex map (created if not present,
                 overwritten if it is). Default 'baked'.
      channel: which bitmap channel to read.
        - 'luminance' (default): perceptual gray (0.299R + 0.587G + 0.114B)
        - 'red' / 'green' / 'blue' / 'alpha'
        - 'average': simple (R+G+B)/3
      invert: if True, output 1.0 - value.
      gamma: apply pow(value, gamma) to each sample. Default 1.0 (off).
      v_flip: if True (default), flip V axis to account for image-Y vs UV-Y
              direction mismatch. Set False if your bitmap was authored
              UV-up.

    Returns: counts (sampled, skipped), min/max/mean of resulting weights,
    plus echo of the bitmap params used.

    Pipeline example: paint hole regions in Photoshop / Painter as a B/W
    mask → save as hole_mask.png → sample_bitmap_at_uv(hole_mask.png) →
    vertex_map_threshold_to_polygon_selection(threshold=0.5) →
    run_modeling_command(op='delete', mode='polygons').
sample_vmap_via_uvtool Transfer a vertex map from source mesh to dest mesh via shared UV space.NetworkCredentialsEnv varsSensitive pathsoutside text
Transfer a vertex map from source mesh to dest mesh via shared UV space.

    The Blender / Houdini "Sample UV" pattern: for each vertex in dest, look
    up its UV, find the source triangle containing that UV, barycentric-
    interpolate the source's vmap weights at that triangle's vertices, and
    write the result to dest's vmap.

    Both meshes must have UV tags. Topology can differ — that's the whole
    point. The UV correspondence is what carries the data across.

    Args:
      source: source object name (must have UV + vmap tags)
      dest:   destination object name (must have UV)
      src_vmap_name: source vmap name; defaults to first found
      dest_vmap_name: dest vmap name; defaults to source vmap name
      v_flip: flip V before lookup (use if source/dest UVs disagree on V direction)
      fallback_value: value written for dest verts whose UV falls outside
                      any source UV island. Default 0.0.

    Returns: per-vertex sampling stats + new vmap weight distribution.

    Pipeline use cases:
      - Bake low-res sculpt mask onto high-res sculpt via shared UVs
      - Transfer a painted hole map from a flat UV-layout mesh onto the
        original curved chair (the inverse of unflatten_uv_to_geo)
      - Move per-region weights between LOD versions of the same model
save_scenetool Save the current Cinema 4D scene.NetworkCredentialsEnv varsSensitive pathsoutside text
Save the current Cinema 4D scene.

    Args:
        file_path: Optional path to save the scene to
scene_asserttool Declarative scene-state verification — the heart of the feedback loop.NetworkCredentialsEnv varsSensitive pathsoutside text
Declarative scene-state verification — the heart of the feedback loop.

    Pass a list of assertion dicts, each describing what should be true
    about the scene RIGHT NOW. Returns per-assertion pass/fail with
    concrete evidence so any agent step can verify what it claims.

    Supported assertion types:
      - object_exists:       {type, name | guid}
      - object_polygon_count:{type, name, expected: 6 | [min,max]}
      - object_point_count:  {type, name, expected: 8 | [min,max]}
      - object_has_tag:      {type, name, tag_type: "Tuvw"|<int>, tag_name?}
      - object_has_child:    {type, name, type_id: "Obend"|<int>, name?}
      - object_position:     {type, name, expected:[x,y,z]|near:[x,y,z],
                              tolerance: 1.0, space: "local"|"world"}
      - vmap_stats:          {type, name, vmap, mean: 0.5|[lo,hi],
                              min: <scalar|range>, max: <scalar|range>}
      - object_count:        {type, expected: 3 | [min,max]}
      - material_count:      {type, expected: 0 | [min,max]}

    Returns:
      {ok: bool, total: int, passed: int, failed: int, results: [...]}
      Top-level `ok` is True iff all assertions passed.

    Pattern for verifying any operation:
      1. apply_deformer(target=Cube, deformer_type=bend, ...)
      2. scene_assert([
           {type:"object_has_child", name:"Cube", type_id:"Obend"},
           {type:"object_polygon_count", name:"Cube", expected:6},
         ])
    If failed > 0, the operation didn't do what you thought it did.

    Read-only — never mutates state.
scene_difftool Diff two scene snapshots (or a snapshot vs the live document).NetworkCredentialsEnv varsSensitive pathsoutside text
Diff two scene snapshots (or a snapshot vs the live document).

    Returns added_objects / removed_objects / transform_changed /
    name_changed / topology_changed / tag_changes / material_diff plus
    a top-level summary of counts.

    Typical agent flow:
      1. scene_snapshot(detail='full') → returns snapshot_id 'abc123'
      2. ... agent does some work that may or may not modify the scene ...
      3. scene_diff(prev_snapshot_id='abc123') → tells you exactly what
         changed since step 1 (without re-listing the whole scene)

    Args:
      prev_snapshot_id: id from a prior scene_snapshot(cache=True) call
                        (preferred — avoids round-tripping full payload)
      prev_snapshot: full prior snapshot inline (use if cache was
                     False or the server restarted between calls)
      curr_snapshot_id: optional id of a previously-cached "current"
                        snapshot. Defaults to taking a fresh snapshot
                        of the live doc.

    Exactly one of prev_snapshot_id / prev_snapshot must be set.
    Read-only.
scene_nodes_add_floating_io_porttool Add a named port to a Floating IO node via the C++ shim's AddPortNetworkCredentialsEnv varsSensitive pathsoutside text
Add a named port to a Floating IO node via the C++ shim's AddPort
    wrapper. Replicates what the C4D editor does on drag-wire when an
    artist exposes a parameter — the singular GraphModelInterface::AddPort
    isn't wrapped in Python's maxon.frameworks, so we route through the
    C++ companion plugin (cinema4d_mcp_helper).

    Phase A.1 (2026-04-30): requires the C++ shim built + installed +
    C4D restarted. Verify via scene_nodes_helper_ping first.

    Args:
      graph_target: name of the BaseObject hosting the Scene Nodes graph.
      fio_node_id: Floating IO instance ID. Full ID ('floatingio@HASH')
        or just the last segment — both match.
      port_name: exact name for the new port. Convention from Maxon's
        shipped capsules:
          hiddenin1.<canonical.attribute.path>  for input side
          in1.<canonical.attribute.path>        for output side
      direction: 'input' (default) or 'output'. Determines whether the
        port is added to the FIO's inputs or outputs container.

    Returns: {ok, new_port_id, status, status_msg, protocol_version, ...}

    UNSAFE — mutates the graph. Always verify via scene_nodes_walk
    post-call to confirm the port actually appeared.
scene_nodes_add_nodetool Add a node to a Scene Nodes graph by asset ID.NetworkCredentialsEnv varsSensitive pathsoutside text
Add a node to a Scene Nodes graph by asset ID.

    Uses GraphDescription.ApplyDescription with `{"$type": <asset_id>, ...}`
    to materialize the node. The asset_id must be one previously discovered
    (via scene_nodes_dissect_capsule or scene_nodes_list_assets), or a
    canonical ID like `net.maxon.neutron.corenode.<name>`.

    Args:
      asset_id: the asset/node-template ID
      graph_target: object name whose embedded graph to add into. Default:
        doc-level scenenodes graph.
      node_name: friendly name (used as `$name` in the description)
      extra_spec: extra fields merged into the description dict — e.g.
        parameter values keyed by port name.

    UNSAFE — mutates the graph. Wrap in begin_undo_group for reversibility.
scene_nodes_apply_patterntool Materialize a known Scene Nodes pattern into a graph by name. TheNetworkCredentialsEnv varsSensitive pathsoutside text
Materialize a known Scene Nodes pattern into a graph by name. The
    "I GOT YOU EASY" tool — synthesizes the canonical node skeleton.

    13 patterns available:
      - loop_over_indices, loop_over_polygons, loop_over_points,
        loop_over_spline_segments
      - reaction_diffusion_on_geometry
      - surface_clinging_growth, stochastic_branching_decision
      - spline_break_by_threshold, spline_resample_with_displacement
      - mesh_element_query_by_selection, selection_evolution_chain
      - per_vertex_property_storage, object_instancing_with_variation

    Use scene_nodes_atlas_lookup kind='pattern' to see params per pattern.

    Args:
      pattern_name: registered pattern name
      params: pattern-specific kwargs (see atlas)
      graph_target: object whose embedded graph to mutate (default: doc-level)
      dry_run: if True, return spec WITHOUT applying

    UNSAFE — mutates the graph. Wrap in begin_undo_group for reversibility.
scene_nodes_atlas_lookuptool Search the Scene Nodes atlas — templates, patterns, port types,NetworkCredentialsEnv varsSensitive pathsoutside text
Search the Scene Nodes atlas — templates, patterns, port types,
    anti-patterns, vocabulary classifications.

    The atlas bundles 802 known node-template canonical IDs (categorized
    into 16 buckets), 13 codified patterns, port-type taxonomy with
    conversion paths, and anti-pattern guides — extracted from analysis
    of 9 real-world scenes (Squiggle Spline, Time Offset, Explode
    Segments, Scaffolds, Whirlpool, City Generator, Fractal Trees,
    Balloon Inflate, Edge to Spline + Ivy Generator).

    Args:
      query: search term (substring or exact)
      kind: 'template' | 'pattern' | 'port_type' | 'antipattern' | 'class' | 'any'
      limit: max results (default 30)

    Read-only.
scene_nodes_bulk_swap_nodestool Route Scene Nodes bulk node-replacement specs through the C++ helper.NetworkCredentialsEnv varsSensitive pathsoutside text
Route Scene Nodes bulk node-replacement specs through the C++ helper.

    Current state: C++ scaffold only. This proves the MCP -> C4D Python ->
    C++ helper contract and returns audit rows, but intentionally refuses
    mutation until the preflight + atomic-swap body is implemented.

    Args:
      swap_specs: line-separated specs in the format
        og_id|my_name|asset_id
      timeout_s: helper timeout in seconds.

    Returns:
      {ok, status, status_msg, implementation_stage, audit_rows}

    UNSAFE once mutation is enabled. For now mutation_enabled=false.
scene_nodes_classify_graphtool Classify a Scene Nodes graph — function-class distribution, detectedNetworkCredentialsEnv varsSensitive pathsoutside text
Classify a Scene Nodes graph — function-class distribution, detected
    patterns, probable purpose, loop-carried-state count.

    Walks the graph, builds a node-vocabulary histogram, compares against
    13 known pattern signatures (reaction_diffusion, surface_clinging_growth,
    spline_break_by_threshold, etc.), and returns a structured semantic
    summary.

    Args:
      target_object: object whose embedded graph to classify (default: doc-level)
      max_depth: walk depth (default 12)

    Read-only.
scene_nodes_connect_portstool Wire two Scene Nodes by port name. Auto-handles type mismatchesNetworkCredentialsEnv varsSensitive pathsoutside text
Wire two Scene Nodes by port name. Auto-handles type mismatches
    via the atlas port_type_taxonomy.

    Args:
      from_node: source node name (or instance hash form)
      from_port: output port name
      to_node: destination node name
      to_port: input port name
      graph_target: object whose embedded graph to mutate (default: doc-level)
      auto_convert: insert conversion node on type mismatch (default True)

    UNSAFE — mutates the graph.
scene_nodes_create_capsule_with_patterntool Create a fresh Scene Nodes Generator/Deformer object AND populateNetworkCredentialsEnv varsSensitive pathsoutside text
Create a fresh Scene Nodes Generator/Deformer object AND populate
    its embedded graph with the named pattern. The "I GOT YOU EASY"
    artist-facing entrypoint — one call, capsule appears in the object
    tree, ready for parameterization via the Attribute Manager.

    This is the canonical capsule-first authoring tool. Instead of
    apply_pattern (which mutates the doc-level graph), this creates a
    self-contained capsule object the artist can drag/drop, parameterize,
    and store Selection Tags from per the bidirectionality principle.

    22 patterns available — call scene_nodes_atlas_lookup kind='pattern'
    for the catalog. Examples:
      - 'procedural_surface_scatter' (host=mesh, count=200)
      - 'hash_threshold_selection' (threshold=0.3, seed=42)
      - 'memory_capsule_state_carrier' (the simplest possible capsule)
      - 'reaction_diffusion_on_geometry' (Gray-Scott on mesh)

    Args:
      pattern_name: registered pattern name (per atlas)
      capsule_type: 'generator' (180420700, default) | 'sn_gen_a' (180420500)
        | 'sn_gen_b' (180420600) | 'sn_gen_c' (180420700) | 'deformer'
        (180420400) | 'capsule' (5171)
      capsule_name: name for the new object (default: derived from pattern_name)
      params: pattern-specific kwargs (see atlas)

    UNSAFE — inserts an object into the doc and mutates its graph.
scene_nodes_create_graphtool Bootstrap a Scene Nodes graph on the doc (or on a specific object).NetworkCredentialsEnv varsSensitive pathsoutside text
Bootstrap a Scene Nodes graph on the doc (or on a specific object).

    Idempotent — if a graph already exists at the target/space, returns
    info about the existing one without modification. UNSAFE (mutates
    doc state when creating).

    Args:
      space: 'scenenodes' (default — the standard Scene Nodes editor
             space) or 'core' (low-level node space).
      target_object: object name. If set, creates a per-object embedded
        graph on that object (Capsule pattern). If None, operates on the
        doc-level graph.

    Use case: when scene_nodes_status reports `hint_open_editor=True`,
    call this to create the doc-level graph programmatically without
    needing the user to open the Scene Nodes editor manually.
scene_nodes_describe_node_templatetool Discover a node template's port schema by adding it to a temp graph,NetworkCredentialsEnv varsSensitive pathsoutside text
Discover a node template's port schema by adding it to a temp graph,
    walking inputs/outputs, removing it. The "what are this node's ports
    called?" tool.

    Solves the runtime port-discovery problem: my pattern synthesizer
    initially used port names like 'from'/'to'/'step' for Range, but
    Range's actual ports are 'start'/'end'/'domain'. This tool exposes
    the truth.

    Args:
      label: English UI label (same as ApplyDescription's $type)
      graph_target: graph for the temp probe (default: doc-level)

    Returns: {label, basename_observed, inputs, outputs, inner_nodes, port_summary}

    Adds + removes the node — non-destructive.
scene_nodes_dissect_capsuletool Dissect a Capsule (or any object with an embedded Scene Nodes graph)NetworkCredentialsEnv varsSensitive pathsoutside text
Dissect a Capsule (or any object with an embedded Scene Nodes graph)
    and return the asset IDs of every node found inside it.

    Capsules wrap a Scene Nodes graph behind a classic-object facade. The
    asset browser is full of them — Primitive ▶ Cube, Modifier ▶ Bevel,
    Effects ▶ Procedural Hair, etc. Each one is the richest source of
    asset IDs we have for building our own graphs programmatically.

    Args:
      target_object: name of the object to dissect. If None, auto-scans
        the doc for ALL capsule-class objects (Capsule, Scene Nodes
        Generator/Deformer, Capsule Field, Simulation Scene) and dissects
        each one.
      max_depth: recursion cap on the inner graph walk (default 8).
      include_ports: include port-node IDs alongside true node IDs
        (default False — usually noise).

    Returns:
      JSON with `scanned` (per-object dissection stats), `unique_asset_ids`
      (union across all scanned), and `registry_size` (cumulative across
      session — the plugin caches discovered IDs for downstream
      scene_nodes_add_node calls).

    Read-only.
scene_nodes_helper_loggertool Phase A.2 diagnostic — drive the C++ shim's promiscuous CoreMessageNetworkCredentialsEnv varsSensitive pathsoutside text
Phase A.2 diagnostic — drive the C++ shim's promiscuous CoreMessage
    logger. Used to identify what messages fire during a manual editor
    gesture (e.g. right-click port → Add Input/Add Output).

    Workflow:
      1. action='start'  — enable the logger
      2. (manually perform the gesture in C4D's Node Editor)
      3. action='stop'   — disable the logger
      4. action='read'   — return the captured log
      5. action='clear'  — empty the log buffer

    Per GPT review: this is a CHEAP FIRST NET. Empty log does NOT prove
    "no command exists" — it only proves the legacy CoreMessage path is
    empty. If the probe returns nothing useful, Phase A.2.1
    (CommandObserverInterface subscription via the maxon command
    framework) is the actual definitive probe.

    Args:
      action: one of 'start', 'stop', 'read', 'clear'

    Returns: {ok, action, status, status_msg, log_dump (read only)}

    SAFE — instrumentation only.
scene_nodes_helper_pingtool Probe whether the cinema4d_mcp_helper C++ companion plugin is loadedNetworkCredentialsEnv varsSensitive pathsoutside text
Probe whether the cinema4d_mcp_helper C++ companion plugin is loaded
    and discoverable.

    The C++ shim adds two Scene Nodes primitives that aren't exposed in
    Python: GraphModelInterface::AddPort (named-port creation on Floating
    IO nodes) and NodeTemplate-typed asset publishing (.c4dnodes format
    that surfaces FIO routing as Attribute Manager parameters). This
    tool reports whether the shim has been built + installed.

    Phase A.0 (2026-04-30): Verifies the .cdl64 plugin loaded; subsequent
    phases wrap the actual primitives. Build via scripts/build_cpp_shim.sh
    and the C4D 2026 SDK Visual Studio solution.

    Returns: {ok, helper_loaded, helper_id, helper_name, hint?}

    SAFE — read-only plugin discovery.
scene_nodes_list_assetstool List Scene Nodes asset IDs known to this plugin instance.NetworkCredentialsEnv varsSensitive pathsoutside text
List Scene Nodes asset IDs known to this plugin instance.

    Two sources:
      - 'discovered' (default): the cumulative registry built from prior
        scene_nodes_dissect_capsule calls in this session. Most reliable —
        these are IDs we've actually proven exist in this C4D install.
      - 'repository': probes maxon.AssetInterface.GetUserPrefsRepository()
        via FindAssets to enumerate registered scene-nodes assets. Slower,
        SDK-version-dependent.
      - 'both': returns both side-by-side.

    Args:
      source: 'discovered' / 'repository' / 'both'
      filter_substring: case-insensitive substring filter on asset IDs.

    Read-only.
scene_nodes_load_assettool Load a previously-saved asset into the active doc by its asset ID.NetworkCredentialsEnv varsSensitive pathsoutside text
Load a previously-saved asset into the active doc by its asset ID.
    Programmatic equivalent of dragging from the asset browser. Wraps
    maxon.AssetManagerInterface.LoadAssets.

    Args:
      asset_id: the asset ID returned by scene_nodes_save_as_asset
        (e.g. 'file_CXHeLCR9PJjqXvZlkjg5RB').

    Returns: {ok, asset_id, loaded, top_level_objects_after}

    UNSAFE — inserts content into the active doc.
scene_nodes_open_editortool Open the Scene Nodes editor window for the doc-level graph.NetworkCredentialsEnv varsSensitive pathsoutside text
Open the Scene Nodes editor window for the doc-level graph.

    Useful when the user wants to inspect what's in the graph or switch
    to manual editing. UNSAFE (UI side effect).
scene_nodes_record_gesturetool Record a manual editor gesture as a structural before/after diff.NetworkCredentialsEnv varsSensitive pathsoutside text
Record a manual editor gesture as a structural before/after diff.

    The gesture-differ. Snapshots the Scene Nodes graph state on `start`,
    waits for the user to perform a manual editor action (right-click "Add
    Input", drag-wire, "Convert to Asset", etc.), then snapshots again on
    `stop` and returns the precise structural diff: nodes/ports/connections
    added or removed, classified into known patterns when recognizable.

    Why: many Node Editor gestures (notably FIO Add Input) are not exposed
    via any documented Maxon API. We can't *call* them — but we can observe
    what they do and reproduce the outcome via public Scene Nodes API. The
    diff IS the recipe.

    Args:
      action: 'start' | 'stop' | 'diff'
        - start: take the "before" snapshot
        - stop:  take the "after" snapshot, compute and return the diff
        - diff:  re-emit the last computed diff (idempotent)
      target_object: optional. If set, records the per-object embedded graph
        (Capsule pattern). If None, records the doc-level graph. Must match
        between start and stop.
      label: tag this recording (e.g. "right-click-add-input-1")
      include_params: include port parameter values in the snapshot
        (default True — costs a few ms but adds richer diff context)

    Returns on stop:
      {ok, label, graph_target, summary: {before/after counts}, diff: {
        added_nodes, removed_nodes, added_ports, removed_ports,
        added_connections, removed_connections, param_changes
      }, classification: {kind, confidence, evidence}}

    Read-only — never mutates the graph. The mutation comes from the user's
    manual gesture between start and stop. Pairs with the planned
    scene_nodes_synthesize_recipe to turn diffs into reproducible
    GraphDescription / transaction recipes. See docs/gesture_differ_design.md.
scene_nodes_save_as_assettool Save an SN Generator (or any BaseObject) + its embedded graph as aNetworkCredentialsEnv varsSensitive pathsoutside text
Save an SN Generator (or any BaseObject) + its embedded graph as a
    reusable user asset in the C4D asset browser. Wraps
    maxon.AssetCreationInterface.CreateObjectAsset.

    Produces a `net.maxon.assettype.file`-typed asset (`.c4d` format).
    Bit-identical round-trip via scene_nodes_load_asset, but does NOT
    register as `net.maxon.node.assettype.nodetemplate` (the type
    Maxon's shipped capsules like Edge to Spline use). Inner Floating
    IO routing is preserved structurally; AM-param surfacing requires
    NodeTemplate publishing which isn't exposed in Python.

    Useful regardless: pattern libraries, programmatic graph templates,
    capturing curated workflows for later reuse via the asset browser.

    Args:
      object_name: name of the BaseObject in the active doc to save.
      asset_name: human-readable asset name. Defaults to object_name.
      asset_version: version string. Defaults to '1.0'.
      asset_id: explicit asset Id. Empty -> system generates one.
      parent_category: asset category Id. Defaults to
        'net.maxon.assetcategory.uncategorized'.

    Returns: {ok, asset_id, asset_url, asset_type_id, asset_version, note}

    UNSAFE — writes to the user prefs asset repository on disk.
scene_nodes_statustool Survey the Scene Nodes graphs present in the active document.NetworkCredentialsEnv varsSensitive pathsoutside text
Survey the Scene Nodes graphs present in the active document.

    Returns:
      - is_node_based: doc in node-based-scene mode (Scene Nodes is the
        source of truth, not the classic hierarchy)
      - nimbus_refs: list of doc-level graphs (one per node space)
      - per_object_graphs: per-object embedded graphs (Capsule generators)
      - hint_open_editor + hint_message: when no graph exists yet, how to
        bootstrap one

    Read-only. Run before any graph-mutation tools to know what context
    you're working in. Scene Nodes graphs in C4D 2026 live in the
    `net.maxon.scenenodes.basescenenodesnodespace` space; the doc-level
    one is created on-demand the first time anything (a UI panel or a
    `scene_nodes_create_graph` call) references it.
scene_nodes_synthesize_porttool Add an AM-exposed user parameter to a Scene Nodes Generator's root,NetworkCredentialsEnv varsSensitive pathsoutside text
Add an AM-exposed user parameter to a Scene Nodes Generator's root,
    wired through to a specific inner-node port.

    One call replaces the manual workflow: right-click "Add Input" → pick
    Type in Resource Editor → drag wire to inner node port. The result is a
    port that:
      - Appears in the Scene Nodes Generator's Attribute Manager
      - Renders the correct widget (slider for Float, integer field for Int,
        Vector XYZ field, checkbox for Bool, etc.)
      - Drives the inner node's parameter when the user drags it

    Recipe (the breakthrough — connection IS the type system):
        AddPort(name)
        SetPortValue(typed_default)            # initial value
        SetValue("net.maxon.node.base.name", display_label)
        Connect(target_typed_inner_port)       # provides widget type binding

    The `Connect` call is REQUIRED — that's where the widget binding comes
    from. C4D's runtime infers the port's type from the connected downstream
    port. Calling AddPort + SetPortValue alone produces a locked text widget
    in the AM; the connection is what makes it draggable.

    Args:
      target_object: name of the Scene Nodes Generator (e.g. 'My Generator')
      name: port identifier — becomes the GraphNode Id
      target_node_id: id of the inner node to wire to (e.g. 'cylinder' or a
        custom-named node like 'claudes_cylinder'). Must be at the root
        level of the SN Generator's graph.
      target_port_id: port id on target_node_id (e.g.
        'net.maxon.command.modeling.primitive.cylinder.radius').
        Use scene_nodes_walk(target_object=..., include_ports=True) to list
        available port ids.
      direction: 'in' (default) or 'out' — port direction on the root
      data_type: 'float' (default) | 'int' | 'vector' | 'bool' | 'string' —
        used to construct the typed default value. Actual runtime type comes
        from the connected target.
      default_value: optional Python primitive matching data_type
      display_label: optional user-facing label for the AM (defaults to
        identifier)

    Returns JSON:
      {ok, target_object, name, port_id, port_path, descid, wired_to,
       direction, data_type, method}

    UNSAFE — mutates the graph.

    See docs/gesture_differ_findings.md for the full reverse-engineering
    history (the wall we hit on C++ attribute derivation, and how the
    connection-based type inference path bypasses it).
scene_nodes_walktool Walk a Scene Nodes graph and return a typed structural summary.NetworkCredentialsEnv varsSensitive pathsoutside text
Walk a Scene Nodes graph and return a typed structural summary.

    Use this to discover what nodes exist in a graph + their hierarchy.
    Pairs with the planned scene_nodes_add_node and scene_nodes_connect_ports
    for graph editing — first walk to learn what's there, then mutate.

    Args:
      target_object: object name. If set, walks the per-object embedded
        graph (Capsule pattern). Default: doc-level scene-nodes graph.
      max_depth: how deep to recurse (default 2). Top-level always included.
      include_ports: include port (kind 2/4) entries (default False —
        they clutter; set True for debugging connections).

    Returns:
      {ok, host, max_depth, root: {id, kind, kind_name, is_root,
       input_count, output_count, child_count, children: [...]}}

    Node kinds:
      - 1 = node (the kind you usually care about)
      - 2 = output port
      - 4 = input port

    For doc-level graph, expect 6 root children:
      - net.maxon.neutron.scene.root (the actual scene tree)
      - context_externaltimeinput, context_notime (time contexts)
      - builder (where user-driven node-additions accumulate)
      - graph-level input + output ports

    Read-only.
scene_snapshottool Capture a typed, GUID-keyed snapshot of the active document.NetworkCredentialsEnv varsSensitive pathsoutside text
Capture a typed, GUID-keyed snapshot of the active document.

    The snapshot is the foundation for stable agent operations:
      - GUIDs survive renames + duplicates (names don't)
      - subsequent scene_diff() calls report exactly what changed
        between snapshots — added/removed objects, transform changes,
        topology changes, tag deltas, material adds/removes
      - clients can cache by snapshot_id (server-side ring buffer of
        last 16 snapshots) to avoid round-tripping the full payload

    Args:
      detail: 'summary' (default — counts + per-object guid/name/type/parent)
              or 'full' (adds local matrix, tag list, point/poly counts).
              Use 'summary' for an overview, 'full' for diff source-of-truth.
      cache:  if True (default), server caches under a short snapshot_id
              that scene_diff can reference later. Set False for one-shot
              snapshots when you don't plan to diff.

    Read-only — never mutates state. Returns structured JSON.
set_keyframetool Set a keyframe for an object property.NetworkCredentialsEnv varsSensitive pathsoutside text
Set a keyframe for an object property.

    Args:
        object_name: Name of the object
        property_name: Name of the property to keyframe (e.g., 'position.x')
        value: Value to set at the keyframe
        frame: Frame number to set the keyframe at
set_parametertool Write an arbitrary parameter on any object/tag/material.NetworkCredentialsEnv varsSensitive pathsoutside text
Write an arbitrary parameter on any object/tag/material.

    Lowest-level write primitive. Auto-coerces common shapes:
      - [x, y, z] → c4d.Vector
      - [r, g, b, a] → c4d.Vector (alpha dropped)
      - {"r":, "g":, "b":} → c4d.Vector
      - bool/int/float/str → as-is

    Args:
      target: object name (or material/tag name)
      parameter: int (raw id), str (c4d constant name), or list (DescID)
      value: the value to set
      target_kind: 'object' (default) | 'material' | 'tag'
      tag_name: required if target_kind='tag'
      undo: True (default) — wraps in StartUndo/AddUndo/EndUndo so the
        change is one Cmd-Z undo-able

    Returns: {target, parameter, old_value, new_value}. UNSAFE — mutates
    target. Use this when there's no higher-level helper for the property
    you want to change (Octane-specific knobs, custom userdata, etc.).

    Example:
      set_parameter(target="MyCube", parameter="PRIM_CUBE_LEN",
                    value=[300, 100, 50])
set_viewport_shading_modetool Set the active viewport's shading mode and/or line overlay.NetworkCredentialsEnv varsSensitive pathsoutside text
Set the active viewport's shading mode and/or line overlay.

    Wraps BASEDRAW_DATA_SDISPLAYACTIVE / SDISPLAYINACTIVE / WDISPLAYACTIVE /
    WDISPLAYINACTIVE / LINES_ON_SHADING_ACTIVE in C4D 2026.

    `mode` — surface shading:
      - 'gouraud'       : full shading with lights (default)
      - 'gouraud_wire'  : gouraud + wireframe overlay (built-in)
      - 'quick'         : quick gouraud (faster)
      - 'quick_wire'    : quick + wireframe overlay
      - 'flat'          : faceted flat shading (no smooth normals)
      - 'flat_wire'     : flat + wireframe overlay
      - 'hidden_line'   : wireframe with hidden lines removed (line drawing)
      - 'noshading'     : flat constant-color (silhouette/matte)

    `line_overlay` — separate wire/iso overlay (orthogonal to mode):
      - 'none'          : no overlay
      - 'wire'          : show wireframe over shading
      - 'isoparms'      : show isoparm lines (SDS cage / NURBS)
      - 'box'           : bounding box overlay
      - 'skeleton'      : object axis triads

    Both can be combined: e.g. mode='gouraud' + line_overlay='wire' gives
    "shaded with wireframe" — invaluable for topology debugging. The combo
    'gouraud_wire' shading mode builds wireframe in directly without needing
    the line_overlay setting; use that for slightly better consistency.

    Returns previous values so callers can restore state.
snapshot_scenetool Create a snapshot of the current scene state.NetworkCredentialsEnv varsSensitive pathsoutside text
Create a snapshot of the current scene state.

    Args:
        file_path: Optional path to save the snapshot
        include_assets: Whether to include external assets in the snapshot
undotool Undo the most recent C4D undo group(s) — equivalent to user Cmd/Ctrl-Z.NetworkCredentialsEnv varsSensitive pathsoutside text
Undo the most recent C4D undo group(s) — equivalent to user Cmd/Ctrl-Z.

    Args:
      steps: how many undo groups to roll back (default 1, max 100).

    Returns counts of requested vs actually-performed steps so you can
    detect when the undo stack runs out.
uv_from_projectiontool Generate UVs procedurally via standard projection types.NetworkCredentialsEnv varsSensitive pathsoutside text
Generate UVs procedurally via standard projection types.

    Useful when you have a mesh without UVs (or with bad UVs) and need to
    quickly establish a baseline UV layout — for texturing, for using as
    a sample-source for sample_vmap_via_uv / uv_transfer, etc.

    Args:
      projection: required, one of:
        - 'box'      : cubic projection — each polygon picks the world
                       axis its normal aligns with most strongly, projects
                       onto that plane
        - 'sphere'   : spherical (longitude/latitude around `up_axis`)
        - 'cylinder' : cylindrical (azimuth around `up_axis`, height = up axis)
        - 'planar_xy': drop Z (use X,Y as U,V) — flat top/bottom view
        - 'planar_xz': drop Y (use X,Z as U,V) — flat front/back
        - 'planar_yz': drop X (use Y,Z as U,V) — flat left/right
      target: object name; defaults to active selection.
      space: 'local' (default — use vertex coords as-is) or 'world'
        (apply object transform first).
      tile_u, tile_v: repeat factor; 1.0 = single span across the bbox.
      offset_u, offset_v: UV offset.
      up_axis: 'x' / 'y' / 'z' — for sphere/cylinder, defines the polar axis.

    Returns: target name, projection used, generated UV bbox, params echoed.

    UV tag is created if missing on target.

    Use cases:
      - Establish UVs on a Volume Mesher / Boolean output that lost them
      - Build tileable UVs for procedural texturing
      - Quick UV baseline before hand-tweaking
      - Generate sample-source UVs to feed sample_vmap_via_uv
uv_islands_to_objectstool Split a polygon mesh into separate objects, one per UV island.NetworkCredentialsEnv varsSensitive pathsoutside text
Split a polygon mesh into separate objects, one per UV island.

    Output objects retain their original 3D positions (NOT flattened).
    UV tag and any vertex map tags are carried over with weights remapped.
    Each island's polygons become an independent polygon mesh.

    Args:
      target: object name; defaults to active selection.
      quantize: UV-position dedup precision (default 6 decimal places).
      name_prefix: prefix for new objects. Default = source name.
                   Output named "{prefix}_island_00", "_island_01", ...
                   (sorted largest-first).
      parent_name: optional Null name to parent results under.
                   Created if not present at top level.
      min_polygons: skip islands smaller than this. Default 1.

    Returns: per-island stats + naming + parent.

    Use cases:
      - process each panel of a chair / shoe / car independently
        (different hole density per panel, different material)
      - export each piece separately for fab / 3D print
      - apply per-island procedural workflows (Spikr scatter at
        different rates, MoGraph effectors per region, etc.)
      - debugging UV layout — see each island as a separate object
uv_layout_statstool Compute layout stats for a polygon mesh's UV tag.NetworkCredentialsEnv varsSensitive pathsoutside text
Compute layout stats for a polygon mesh's UV tag.

    Walks the UV layout, detects islands via union-find on shared UV
    vertex positions, measures per-island bbox + area in both UV space
    and 3D space (giving a distortion ratio = sqrt(world_area/uv_area)
    which is the local texel-density factor), and detects shell overlap
    via 32x32 UV grid binning + 3D-spread heuristic.

    Returns:
      - global UV bbox
      - island_count
      - per-island stats: polygon_count, uv_bbox, uv_area, world_area,
        distortion (local texel density factor)
      - overlap_grid: cells with high 3D-spread (sign of mirrored or
        stacked UV shells, which break naive UV→3D pipelines)

    Use cases:
      - sanity check before running UV-flatten / hole-cut workflows
      - identify oversized or undersized UV islands (texel density
        comparison)
      - detect mirrored/overlapping shells before they cause issues
      - estimate proper texture resolution per island
uv_transfertool Project UVs from one mesh onto another via closest-point-on-source.NetworkCredentialsEnv varsSensitive pathsoutside text
Project UVs from one mesh onto another via closest-point-on-source.

    For each vertex in the destination mesh, finds the closest point on the
    source mesh (3D space, world transform applied), computes barycentric
    coordinates at that point, and samples the source UVs there. Writes UVs
    to all polygon corners of dest that reference each vertex.

    Args:
      source: source mesh (must have UV tag) — donor of UV layout.
      dest:   destination mesh — receives projected UVs.
      create_uv_tag: if True (default) and dest has no UV tag, create one.
        If False and dest has no UV tag, error.
      grid_res: 3D spatial grid resolution for source (default 48).
        Higher = faster lookups but more memory. 32–64 is the practical range.
      max_distance: optional. Verts whose closest source point is farther
        than this are flagged as fallback (no UV written). Default unlimited.

    Returns: per-vertex sampling stats + distance histogram.

    Use cases:
      - Transfer UV layout from low-poly retopo onto high-poly sculpt
      - Re-UV a remeshed / decimated version of a textured mesh
      - Bring UVs across LOD versions of the same model
      - Inherit UVs after a Boolean / Volume Mesher op produced a new mesh
        from an originally-UVed source

    Caveats:
      - Closest-point in 3D — works best when source and dest are roughly
        aligned spatially.
      - Result has the same UV at all polygon corners referencing a given
        dest vertex (no UV seams). For seam-aware transfer, additional
        authoring or an Optimize/UV-relax pass is needed afterward.
validate_redshift_materialstool Validate Redshift node materials in the scene and report any issues.NetworkCredentialsEnv varsSensitive pathsoutside text
Validate Redshift node materials in the scene and report any issues.

    Walks every Redshift material in the active document, runs a series of
    diagnostic checks (module presence, expected attributes, NodeSpace ID,
    common parameter coverage), and reports warnings + auto-applied fixes.

    This is a sibling to `inspect_redshift_materials`: inspect is read-only
    introspection, validate runs the same diagnostics + opportunistic fixups
    and is appropriate for "is my Redshift wiring correct?" checks.

    No args — operates on every Redshift material in the active doc.
vertex_map_statstool Compute statistics for a Vertex Map tag on a polygon mesh.NetworkCredentialsEnv varsSensitive pathsoutside text
Compute statistics for a Vertex Map tag on a polygon mesh.

    Returns: vertex count, min/max/sum/mean weight, painted_count (weight > 0),
    zero/full counts, and a 10-bin histogram of the weight distribution.

    Args:
      target: object name; defaults to active selection.
      vmap_name: specific vertex map name; defaults to first vertex map tag found.

    Useful for verifying a painted hole map has the expected coverage before
    using it as a Field source or driving a polygon selection.
vertex_map_threshold_to_polygon_selectiontool Convert a vertex map weight threshold into a polygon selection tag.NetworkCredentialsEnv varsSensitive pathsoutside text
Convert a vertex map weight threshold into a polygon selection tag.

    For each polygon, evaluates whether the polygon's vertices meet the
    threshold and selects the polygon if so:

      - require_all=False (default): polygon is selected if ANY vertex
        has weight >= threshold (broad — picks edge polygons where painting
        bleeds onto a single corner)
      - require_all=True: polygon is selected only if ALL vertices have
        weight >= threshold (conservative — only fully-inside polygons)

    Result is a polygon selection tag named `selection_name` on the target.
    From there you can drive any operation that takes a polygon selection
    (Boolean, Inner Extrude + Delete for hole-cutting, Field Layer, etc.).

    Args:
      target: object name; defaults to active selection.
      vmap_name: specific vertex map name; defaults to first found.
      threshold: weight cutoff in [0, 1]. Default 0.5.
      require_all: see above. Default False (any-vertex match).
      selection_name: name for the resulting polygon selection tag.
      replace_existing: if a selection tag with this name exists, overwrite it.

    Pipeline example: paint hole regions with a vertex map → run this with
    threshold=0.5 → use `run_modeling_command(op='delete', mode='polygons')`
    to cut the hole pattern in real geometry.
viewport_screenshottool Capture a viewport-style screenshot of the active C4D scene.NetworkCredentialsEnv varsSensitive pathsoutside text
Capture a viewport-style screenshot of the active C4D scene.

    `renderer` options:
      - 'hardware' (default): C4D's OpenGL preview renderer. Always works,
        doesn't need a scene light, fast. Use this unless you need otherwise.
      - 'standard': C4D's software renderer. WARNING: in installs with Octane
        (or some other 3rd-party render plugin), Octane's hooks intercept the
        Standard pipeline and produce all-black output. The plugin auto-detects
        an all-black render and falls back to 'hardware', surfacing a warning
        in the response. Standard also requires at least one scene light.
      - 'current': render through the user's active engine (Octane/Redshift).
        Note: Octane viewport_screenshot output may not match the live Octane
        viewer — verify Octane-specific behavior in C4D directly.

    `save_path` options:
      - None (default): the image is returned inline as a base64 PNG.
        Practical limit ~800x450 due to MCP response token budget (~60K).
      - file path: the PNG is written to disk and the response returns
        {path, width, height, renderer} instead of base64. Use this for
        captures larger than ~1024x768, or when the inline path
        exceeds the token budget.
viewport_screenshot_multiviewtool Capture multiple viewport angles in a single call by toggling the activeNetworkCredentialsEnv varsSensitive pathsoutside text
Capture multiple viewport angles in a single call by toggling the active
    BaseDraw projection between captures.

    Args:
      width / height: per-view dimensions (default 400x300 — kept small so 4
          views fit under the MCP token budget when returned inline).
      renderer: 'hardware' (default), 'standard', or 'current'. Same semantics
          as `viewport_screenshot`.
      views: subset of ['perspective', 'top', 'front', 'right', 'left',
          'bottom', 'back']. Default: ['perspective', 'top', 'front', 'right'].
      save_dir: if provided, each PNG is written to this directory as
          `multiview_<viewname>.png` and the response returns file paths
          instead of inline base64. Use this when capturing at higher
          resolutions that would blow the token budget.

    The original viewport projection is restored after capture.
volume_to_polygonstool Bake a Volume Builder/Mesher chain into an editable polygon mesh.NetworkCredentialsEnv varsSensitive pathsoutside text
Bake a Volume Builder/Mesher chain into an editable polygon mesh.

    Wraps current_state_to_object on the volume host so the result no
    longer depends on the source generators.

    Args:
      target: name of the volume object to bake.
      delete_source: True to remove the original generator after baking.

Text the model reads (118)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

uv_transfer tool
Project UVs from one mesh onto another via closest-point-on-source.

    For each vertex in the destination mesh, finds the closest point on the
    source mesh (3D space, world transform applied), computes barycentric
    coordinates at that point, and samples the source UVs there. Writes UVs
    to all polygon corners of dest that reference each vertex.

    Args:
      source: source mesh (must have UV tag) — donor of UV layout.
      dest:   destination mesh — receives projected UVs.
      create_uv_tag: if True (default) and dest has no UV tag, create one.
        If False and dest has no UV tag, error.
      grid_res: 3D spatial grid resolution for source (default 48).
        Higher = faster lookups but more memory. 32–64 is the practical range.
      max_distance: optional. Verts whose closest source point is farther
        than this are flagged as fallback (no UV written). Default unlimited.

    Returns: per-vertex sampling stats + distance histogram.

    Use cases:
      - Transfer UV layout from low-poly retopo onto high-poly sculpt
      - Re-UV a remeshed / decimated version of a textured mesh
      - Bring UVs across LOD versions of the same model
      - Inherit UVs after a Boolean / Volume Mesher op produced a new mesh
        from an originally-UVed source

    Caveats:
      - Closest-point in 3D — works best when source and dest are roughly
        aligned spatially.
      - Result has the same UV at all polygon corners referencing a given
        dest vertex (no UV seams). For seam-aware transfer, additional
        authoring or an Optimize/UV-relax pass is needed afterward.
get_scene_info tool
Get information about the current Cinema 4D scene.
add_primitive tool
Add a primitive object to the Cinema 4D scene.

    Args:
        primitive_type: Type of primitive (cube, sphere, cone, cylinder, plane, etc.)
        name: Optional name for the new object
        position: Optional [x, y, z] position
        size: Optional [x, y, z] size or dimensions
modify_object tool
Modify properties of an existing object.

    Args:
        object_name: Name of the object to modify
        properties: Dictionary of properties to modify (position, rotation, scale, etc.)
list_objects tool
List all objects in the current Cinema 4D scene.

    If this tool returns a validation error, use execute_python_script as a fallback
    to traverse the object hierarchy manually via the c4d API.
create_material tool
Create a new material in Cinema 4D.

    Args:
        name: Name for the new material
        color: Optional [R, G, B] color (values 0-1)
        properties: Optional additional material properties
apply_material tool
Apply a material to an object.

    Args:
        material_name: Name of the material to apply
        object_name: Name of the object to apply the material to
inspect_redshift_materials tool
Inspect Redshift materials with best-effort fallbacks.

    This tool is read-only and is designed to be useful even when the Redshift
    Python runtime is unavailable. It can still report names, assignments,
    preview-derived colors, readable description/container fields, and will
    attempt graph inspection only when Cinema 4D exposes that data.

    Args:
        material_name: Optional material name filter
        include_assignments: Include texture-tag assignments in the scene
        include_preview: Include sampled preview bitmap color data
        include_description: Include readable description entries
        include_container: Include safe BaseContainer values
        include_graph: Attempt node-graph inspection when available
validate_redshift_materials tool
Validate Redshift node materials in the scene and report any issues.

    Walks every Redshift material in the active document, runs a series of
    diagnostic checks (module presence, expected attributes, NodeSpace ID,
    common parameter coverage), and reports warnings + auto-applied fixes.

    This is a sibling to `inspect_redshift_materials`: inspect is read-only
    introspection, validate runs the same diagnostics + opportunistic fixups
    and is appropriate for "is my Redshift wiring correct?" checks.

    No args — operates on every Redshift material in the active doc.
render_frame tool
Render the current frame.

    Args:
        output_path: Optional path to save the rendered image
        width: Optional render width in pixels
        height: Optional render height in pixels
set_keyframe tool
Set a keyframe for an object property.

    Args:
        object_name: Name of the object
        property_name: Name of the property to keyframe (e.g., 'position.x')
        value: Value to set at the keyframe
        frame: Frame number to set the keyframe at
save_scene tool
Save the current Cinema 4D scene.

    Args:
        file_path: Optional path to save the scene to
load_scene tool
Load a Cinema 4D scene file.

    Args:
        file_path: Path to the scene file to load
create_mograph_cloner tool
Create a MoGraph Cloner object of specified type.

    Args:
        cloner_type: Type of cloner (grid, radial, linear)
        name: Optional name for the cloner
add_effector tool
Add a MoGraph Effector to the scene.

    Args:
        effector_type: Type of effector (random, shader, field)
        name: Optional name for the effector
        target: Optional target object (e.g., cloner) to apply the effector to
apply_mograph_fields tool
Create and apply a MoGraph Field.

    Args:
        field_type: Type of field (spherical, box, cylindrical, linear, radial, noise)
        target: Optional target object to apply the field to
        field_name: Optional name for the field
        parameters: Optional parameters for the field (strength, falloff)
create_soft_body tool
Add soft body dynamics to the specified object.

    Args:
        object_name: Name of the object to convert to a soft body
apply_dynamics tool
Add dynamics (rigid or soft) to the specified object.

    Args:
        object_name: Name of the object to apply dynamics to
        dynamics_type: Type of dynamics to apply (rigid, soft)
create_abstract_shape tool
Create an organic, abstract shape.

    Args:
        shape_type: Type of shape (blob, metaball)
        name: Optional name for the shape
create_camera tool
Create a new camera in the scene.

    Args:
        name: Optional name for the new camera.
        position: Optional [x, y, z] position.
        properties: Optional dictionary of camera properties (e.g., {"focal_length": 50}).
create_light tool
Add a light to the scene.

    Args:
        light_type: Type of light (area, dome, spot)
        name: Optional name for the light
apply_shader tool
Create and apply a specialized shader material.

    Args:
        shader_type: Type of shader (noise, gradient, fresnel, etc)
        material_name: Optional name of material to apply shader to
        object_name: Optional name of object to apply the material to
animate_camera tool
Create a camera animation.

    Args:
        animation_type: Type of animation (wiggle, orbit, spline, linear)
        camera_name: Optional name of camera to animate
        positions: Optional list of [x,y,z] camera positions for keyframes
        frames: Optional list of frame numbers for keyframes
execute_python_script tool
Execute a Python script in Cinema 4D's Python environment.

    This is the most reliable tool for non-trivial operations — it gives full access
    to the c4d API and avoids wrapper/schema mismatches that can affect other tools.

    Args:
        script: Python code to execute in Cinema 4D. Has access to `c4d` and
            `c4d.modules.mograph` modules.

    Important usage notes:
        - For animated/MoGraph data, always call doc.ExecutePasses() after SetTime():
            doc.SetTime(c4d.BaseTime(frame, fps))
            doc.ExecutePasses(None, True, True, True, c4d.BUILDFLAGS_NONE)
        - For MoGraph/effector data, iterate frames sequentially (0..N) rather than
          jumping directly to a later frame — sequential stepping produces more
          faithful results.
        - Security restrictions block certain keywords: import os, subprocess, exec(, eval(.
          Keep scripts within the c4d API surface.
        - For heavy operations (dense frame loops, complex MoGraph scenes), split work
          into multiple smaller scripts rather than one large monolith.
        - Use print() to return results — output is captured and returned.
group_objects tool
Group multiple objects under a null object.

    Args:
        object_names: List of object names to group
        group_name: Optional name for the group
render_preview tool
Render the current view and return a base64-encoded preview image.

    Args:
        width: Optional preview width in pixels
        height: Optional preview height in pixels
        frame: Optional frame number to render
snapshot_scene tool
Create a snapshot of the current scene state.

    Args:
        file_path: Optional path to save the snapshot
        include_assets: Whether to include external assets in the snapshot
enumerate_descids tool
Enumerate every parameter (DescID) of a Cinema 4D object.

    THIS IS THE MOST IMPORTANT TOOL FOR DISCOVERING UNDOCUMENTED PLUGIN
    PARAMETER IDS. Use it to find Octane Area Light's texture/distribution
    input, Redshift node parameters, third-party tag IDs, etc. Mirrors
    the workflow of C4D's Customize Palettes attribute inspector.

    Provide either `object_name` or `guid` to identify the target object.
    Filter the result with `name_filter` (case-insensitive substring) or
    `name_pattern` (fnmatch wildcard) to narrow large parameter sets —
    e.g. name_filter="texture" surfaces texture-related params on an
    Octane light in seconds.

    Set `top_level_only=True` to skip nested group parameters.
enumerate_userdata tool
Enumerate the User Data container on an object (separate from regular Description params).
find_objects tool
Find scene objects matching name pattern, substring, and/or type id.

    Combine filters AND-style. Examples:
      - name_pattern="Cube*" matches "Cube", "Cube.1", "Cube_test"
      - name_contains="light" — case-insensitive substring match
      - type_id=5159 — exact type match (c4d.Ocube)
      - type_id_min=1029525, type_id_max=1029999 — Octane-plugin ID range scan

    Results include name, type, type_id, guid, and depth in the hierarchy.
get_object_info tool
Return comprehensive info on a single object: name, type, GUID, transform,
    visibility flags, layer, parent, child count, and all tags.
dump_object_tree tool
Dump the scene hierarchy as a flat list of {depth, name, type, guid}.
    Pass `root_name` or `root_guid` to start from a specific subtree; omit both
    to dump the entire scene from the document root.
get_console_log tool
Read recent entries from the MCP console log buffer.

    Captures both Cinema 4D's c4d.GePrint() output (via runtime hook installed
    when the socket server starts) AND the plugin's internal self.log() messages.
    This lets the MCP client see what's happening in C4D without manually
    inspecting the console window.

    Filters:
      - limit: max number of entries to return (default 200, newest last)
      - since_ts: only entries with timestamp > since_ts (epoch seconds)
      - source: filter by source — 'plugin', 'c4d.GePrint', or 'mcp'
      - contains: case-insensitive substring filter on message content
clear_console_log tool
Empty the MCP console log ring buffer (does NOT clear C4D's own console window).
get_action_log tool
Return the MCP action log buffer — recent commands the MCP dispatcher
    executed, sanitized (no code/script payloads, just operation + safe params).
    Useful for "what did the AI just do?" audit trails or replay.

    Args:
      limit: return only the last N events (default: full buffer, capped at 500)
export_action_log tool
Write the MCP action log to a JSON file at file_path (absolute path).
    Useful for archiving session traces or generating replay scripts.
get_ui_action_log tool
Return the UI action log buffer — user actions observed in C4D's UI
    (object create/delete, selection changes, transform edits, time changes,
    keyframe add/delete) populated by the UiActionObserver MessageData
    plugin polling every 400ms.

    Useful for: "what has the user done since I last looked?" / replay
    user demos / Cursor skill-generation workflows.

    Args:
      limit: return only the last N events (default: full buffer, capped at 2000)
export_ui_action_log tool
Write the UI action log to a JSON file at file_path (absolute path).
    Includes scene_name + fps in the payload header.
clear_action_log tool
Empty the MCP action log buffer. If include_ui=True, also clears
    the UI action log buffer.
list_installed_plugins tool
List loaded Cinema 4D plugins, filterable by type, id, or name.

    plugin_type options: 'object', 'tag', 'shader', 'material', 'command',
    'tool', 'node', 'bitmapsaver', 'bitmaploader', 'videopost', 'sculptbrush',
    'falloff', 'field', 'all' (default).

    Use id_min/id_max to scan a plugin ID range — invaluable for discovering
    Octane/Redshift/third-party plugins. Example: id_min=1029525, id_max=1030000
    to enumerate plugins in Octane's typical range.
get_c4d_info tool
Return C4D environment info: version, Python version, install paths, prefs path,
    active document, and Cinema 4D MCP buffer state. Useful for diagnostics.
get_capabilities tool
Capability snapshot: plugin version, C4D version, available render
    engines, supported commands (with safe vs unsafe partition), MCP_AUTH_TOKEN
    state, and a cheap document summary (object/material counts, fps, frame).

    Call this once at session start to discover what this build of the MCP
    can do — avoids trial-and-error probing and lets a client cache the tool
    surface. Returns structured JSON.
scene_snapshot tool
Capture a typed, GUID-keyed snapshot of the active document.

    The snapshot is the foundation for stable agent operations:
      - GUIDs survive renames + duplicates (names don't)
      - subsequent scene_diff() calls report exactly what changed
        between snapshots — added/removed objects, transform changes,
        topology changes, tag deltas, material adds/removes
      - clients can cache by snapshot_id (server-side ring buffer of
        last 16 snapshots) to avoid round-tripping the full payload

    Args:
      detail: 'summary' (default — counts + per-object guid/name/type/parent)
              or 'full' (adds local matrix, tag list, point/poly counts).
              Use 'summary' for an overview, 'full' for diff source-of-truth.
      cache:  if True (default), server caches under a short snapshot_id
              that scene_diff can reference later. Set False for one-shot
              snapshots when you don't plan to diff.

    Read-only — never mutates state. Returns structured JSON.
scene_diff tool
Diff two scene snapshots (or a snapshot vs the live document).

    Returns added_objects / removed_objects / transform_changed /
    name_changed / topology_changed / tag_changes / material_diff plus
    a top-level summary of counts.

    Typical agent flow:
      1. scene_snapshot(detail='full') → returns snapshot_id 'abc123'
      2. ... agent does some work that may or may not modify the scene ...
      3. scene_diff(prev_snapshot_id='abc123') → tells you exactly what
         changed since step 1 (without re-listing the whole scene)

    Args:
      prev_snapshot_id: id from a prior scene_snapshot(cache=True) call
                        (preferred — avoids round-tripping full payload)
      prev_snapshot: full prior snapshot inline (use if cache was
                     False or the server restarted between calls)
      curr_snapshot_id: optional id of a previously-cached "current"
                        snapshot. Defaults to taking a fresh snapshot
                        of the live doc.

    Exactly one of prev_snapshot_id / prev_snapshot must be set.
    Read-only.
recipe_run tool
Run a recipe — a JSON sequence of tool-calls + scene_assert checks.

    A recipe is the unit of regression testing: bundle a known-good
    operation sequence + the scene-state assertions that should hold,
    then run as one tool call. Accumulating a folder of recipes turns
    "did this still work after my last commit?" into a single call.

    Recipe schema:
      {
        "name": "<recipe_name>",
        "description": "...",
        "setup":     [{"command": "<cmd>", "args": {...}}, ...],
        "steps":     [{"name": "<step>",
                       "command": "<cmd>", "args": {...},
                       "assert": [<scene_assert assertion>, ...]}, ...],
        "teardown":  [{"command": "<cmd>", "args": {...}}, ...]
      }

    Args:
      recipe_path: path to a JSON recipe file (preferred — versioned in git)
      recipe: inline recipe dict (for ad-hoc one-shot use)
      stop_on_fail: if True, stop running steps after the first failure.
                    Default False — every step runs even if earlier ones fail,
                    so you see the full damage report.

    Returns:
      {ok, name, total_steps, passed, failed, results: [...], setup_results,
       teardown_results, duration_ms}
scene_assert tool
Declarative scene-state verification — the heart of the feedback loop.

    Pass a list of assertion dicts, each describing what should be true
    about the scene RIGHT NOW. Returns per-assertion pass/fail with
    concrete evidence so any agent step can verify what it claims.

    Supported assertion types:
      - object_exists:       {type, name | guid}
      - object_polygon_count:{type, name, expected: 6 | [min,max]}
      - object_point_count:  {type, name, expected: 8 | [min,max]}
      - object_has_tag:      {type, name, tag_type: "Tuvw"|<int>, tag_name?}
      - object_has_child:    {type, name, type_id: "Obend"|<int>, name?}
      - object_position:     {type, name, expected:[x,y,z]|near:[x,y,z],
                              tolerance: 1.0, space: "local"|"world"}
      - vmap_stats:          {type, name, vmap, mean: 0.5|[lo,hi],
                              min: <scalar|range>, max: <scalar|range>}
      - object_count:        {type, expected: 3 | [min,max]}
      - material_count:      {type, expected: 0 | [min,max]}

    Returns:
      {ok: bool, total: int, passed: int, failed: int, results: [...]}
      Top-level `ok` is True iff all assertions passed.

    Pattern for verifying any operation:
      1. apply_deformer(target=Cube, deformer_type=bend, ...)
      2. scene_assert([
           {type:"object_has_child", name:"Cube", type_id:"Obend"},
           {type:"object_polygon_count", name:"Cube", expected:6},
         ])
    If failed > 0, the operation didn't do what you thought it did.

    Read-only — never mutates state.
image_inspect tool
Inspect a saved PNG file: dimensions, file size, MD5, content stats.

    Server-side — does not roundtrip to C4D for the file read but does
    use C4D's BaseBitmap for pixel sampling. Use after viewport_screenshot
    to verify the saved file looks plausible (non-blank, expected dims),
    or to fingerprint a save for later comparison.

    Returns:
      - md5, file_size_bytes, width, height, bit_depth, color_type
      - sample_min/max/mean/stddev (10x10 grid of pixel grayscale samples)
      - is_blank (stddev < 1.0 — uniform color, no rendered content)
      - has_content (inverse, for positive-asserting code)

    Pair with images_compare(paths=[...]) to detect "I saved 6 things and
    they're all identical" — the failure mode that produced the
    validation_shots regression.
images_compare tool
Compare a list of PNG files for byte-identical duplicates.

    Returns:
      - all_unique (bool): True iff every file has a distinct MD5
      - unique_count, total_count
      - duplicate_groups: {md5: [paths]} for any group with >1 file —
        the "all my saves are identical" detector
      - per_file: ordered list with md5, size, or per-file error

    THE TOOL THAT WOULD HAVE CAUGHT the 6-shading-shots-all-identical
    failure. Run this after any batch of viewport_screenshot saves where
    you expect the outputs to differ. If `all_unique` is False, your
    upstream tool isn't actually changing what it claims to change.
create_volume_builder tool
Create a Volume Builder generator that combines source objects via voxels.

    Args:
      source_objects: list of object names to feed into the builder. Each
        is cloned (originals preserved) and parented under the new builder.
      voxel_size: voxel size in scene units (default 5.0). Smaller = more
        detail, slower.
      mode: 'union' (default) | 'subtract' | 'intersect'
      name: name for the new generator (default 'VolumeBuilder')

    Voxel-based modeling unlocks organic blobs, smooth booleans, fluid-like
    geometry from sparse inputs. Pair with create_volume_mesher to get a
    polygon output, then volume_to_polygons to bake.
create_volume_mesher tool
Convert a Volume Builder's voxel output to a polygon mesh.

    Args:
      volume_target: name of the Volume Builder (or any volume-emitting
        object). It's parented under the new mesher.
      threshold: SDF threshold for surface extraction (default 0.5).
      voxel_size: optional output mesh resolution (defaults to source).
      name: name for the new mesher (default 'VolumeMesher').
volume_to_polygons tool
Bake a Volume Builder/Mesher chain into an editable polygon mesh.

    Wraps current_state_to_object on the volume host so the result no
    longer depends on the source generators.

    Args:
      target: name of the volume object to bake.
      delete_source: True to remove the original generator after baking.
get_parameter tool
Read an arbitrary parameter from any object/tag/material.

    Lowest-level read primitive. Works for ANY parameter — common ones,
    renderer-specific (Octane/Redshift), plugin-specific, custom user-data.

    Args:
      target: object name (or material/tag name depending on target_kind)
      parameter: int (raw id e.g. 1100), str (c4d constant name e.g.
                 "PRIM_CUBE_LEN"), or list (DescID structure: just [id]
                 for single-level, or [[id, dtype, creator], ...] for full)
      target_kind: 'object' (default) | 'material' | 'tag'
      tag_name: required if target_kind='tag' — name of the tag

    Returns: {target, parameter_resolved, value, value_type}.
    Vectors come back as [x,y,z], matrices as {off, v1, v2, v3} dicts,
    primitives unchanged. Read-only.

    Example:
      get_parameter(target="MyCube", parameter="PRIM_CUBE_LEN")
      → {value: [200.0, 200.0, 200.0], value_type: "Vector"}
set_parameter tool
Write an arbitrary parameter on any object/tag/material.

    Lowest-level write primitive. Auto-coerces common shapes:
      - [x, y, z] → c4d.Vector
      - [r, g, b, a] → c4d.Vector (alpha dropped)
      - {"r":, "g":, "b":} → c4d.Vector
      - bool/int/float/str → as-is

    Args:
      target: object name (or material/tag name)
      parameter: int (raw id), str (c4d constant name), or list (DescID)
      value: the value to set
      target_kind: 'object' (default) | 'material' | 'tag'
      tag_name: required if target_kind='tag'
      undo: True (default) — wraps in StartUndo/AddUndo/EndUndo so the
        change is one Cmd-Z undo-able

    Returns: {target, parameter, old_value, new_value}. UNSAFE — mutates
    target. Use this when there's no higher-level helper for the property
    you want to change (Octane-specific knobs, custom userdata, etc.).

    Example:
      set_parameter(target="MyCube", parameter="PRIM_CUBE_LEN",
                    value=[300, 100, 50])
octane_set_camera_to_osl tool
Set an Octane Camera tag on a CameraObject to OSL mode + inject source.

    Octane's OSL Camera lets you write per-pixel ray-generation as OSL.
    Use cases: custom fisheye projections, anamorphic squeeze, post-FX
    distortions baked into camera rays, panoramic-cube layouts, weird
    artistic projections.

    Args:
      camera_target: name of the C4D CameraObject. If it doesn't have an
        Octane Camera tag, one is added.
      source_code: OSL source as a string (mutually exclusive with snippet)
      snippet: shorthand for one of the canned camera snippets:
        camera_pinhole, camera_fisheye_180, camera_anamorphic_squeeze,
        camera_vortex. Snippet wins if both supplied.
      baking: True → use OSL_BAKING mode (4) instead of OSL mode (3).
        For UV-baking workflows where you want OSL ray generation during
        a bake pass.
      auto_compile: compile on parameter change (default True)
      name: name for the new Octane Camera tag (default "Octane Camera")

    Pattern (custom-projection workflow):
      create_camera(name="MyCam")
      octane_set_camera_to_osl(camera_target="MyCam",
                               snippet="camera_fisheye_180")
      → camera now renders through a 180-degree fisheye OSL shader in
        Octane's render pipeline.

    UNSAFE — mutates the target camera. Octane plugin must be loaded.
list_osl_snippets tool
Return the curated set of OSL snippets shipped with the plugin.

    Snippets are seed code for octane_create_osl_texture — drop in,
    iterate from there. Currently shipped:
      - constant_red: minimum viable shader
      - uv_gradient: u/v as r/g color
      - checker: classic checkerboard
      - polar_warp: radial gradient from UV center
octane_create_osl_texture tool
Create an Octane OSL texture shader with the given source.

    OSL (Open Shading Language) is the standard programmable shader
    language Octane / Arnold / Cycles / V-Ray all support. This tool
    creates an Octane OSL Texture shader, sets the source code, and
    optionally inserts it into a material channel.

    Args:
      source_code: OSL source as a string. Mutually exclusive with snippet.
      snippet: shorthand for one of the canned snippets (see list_osl_snippets).
        If both source_code and snippet are set, snippet wins.
      name: shader name (default "OSL")
      auto_compile: compile on parameter change (default True)
      host_material: name of an existing material to drop the shader into.
        If None, returns an orphan shader the user wires up manually.
      host_channel: which channel to link in the host material — diffuse,
        emission/luminance, transparency, reflection, alpha, bump, normal.
        Default: diffuse.

    Returns: shader name + GUID + compile_log (any compile errors) +
    source preview + warnings.

    Pattern (programmatic shading):
      mat = create_material(name="MyShaded", color=[0.2, 0.2, 0.2])
      octane_create_osl_texture(snippet="checker", host_material="MyShaded",
                                host_channel="diffuse")
      apply_material("MyShaded", "MyObject")
      → object now has a procedural OSL checkerboard.

    Octane plugin must be loaded; if not, returns a clear error.
list_field_types tool
Discover what field object types this C4D build supports + default
    parameter shape.

    Fields are layered evaluators that produce scalar/vector/color values
    at points in 3D space. They drive MoGraph effectors, vertex maps,
    selections, and some deformers.

    Read-only. Run before add_field_to_scene to know the type catalog.
add_field_to_scene tool
Add a field object to the scene.

    Args:
      field_type: canonical name from list_field_types
                  (linear, spherical, box, cylinder, cone, random,
                  shader, formula, noise, ...)
      name: name for the new field (default = canonical type name)
      position: optional [x, y, z] world position
      size: optional [x, y, z] for shape fields
      parent_name: optional parent object name (groups under it instead
        of free top-level)

    Field objects generate the layered evaluation; you reference them
    from a FieldList parameter on an effector / vmap tag / selection /
    deformer to drive procedural behavior. Pair with bake_field_to_vmap
    to convert a field's per-point values into a static vertex map.

    UNSAFE — mutates scene.
bake_field_to_vmap tool
Sample a field at every vertex of a target mesh, write to a vmap.

    Bridge from procedural field evaluation to vmap-driven downstream tools
    (threshold-to-poly-selection, masked deformer restriction, etc).

    Args:
      field_target: name of the field object to sample
      dest_object: poly mesh whose vertices will be sampled
      vmap_name: name of the vmap to write (created if missing, overwritten)
      space: 'world' (default) or 'local' for sampling positions

    Uses c4d.modules.mograph.FieldList + FieldInput / FieldOutput. Field's
    transform is honored automatically — sampling happens in world space
    with the field's matrix factored in.

    Pattern (procedural creative loop):
      add_field_to_scene("spherical", name="MaskField", position=[0,100,0], size=[200,200,200])
      bake_field_to_vmap("MaskField", "MyMesh", vmap_name="mask")
      vertex_map_threshold_to_polygon_selection("MyMesh", vmap="mask", threshold=0.5)
      apply_deformer("MyMesh", "bend", restrict_vmap="mask")
      → procedural masked deformation driven by a SPATIAL field.

    UNSAFE — mutates dest's vmap.
list_deformer_types tool
Discover what deformer types this C4D build supports + their default
    parameter shape.

    Read-only. Run before apply_deformer to know:
      - which deformers exist (some build configurations omit constants)
      - which canonical params each accepts (size, strength_deg, radius, ...)
      - the underlying type_id (for advanced use)
apply_deformer tool
Add a deformer as a child of the target object, optionally restricted
    to a vertex map.

    Args:
      target: object to deform
      deformer_type: canonical name from list_deformer_types
                     (bend, twist, taper, shear, bulge, shrink_wrap, wrap,
                     smoothing, jiggle, bevel, spherify, displacer, ...)
      params: deformer-specific parameters. Common: size=[x,y,z],
              strength_deg, strength, radius, width, height, iterations.
              Run list_deformer_types for the per-type schema.
      name: name for the new deformer (default = deformer_type)
      restrict_vmap: vertex-map name on the target. When set, the deformer
                     gets a Restriction tag bound to that vmap so the
                     deformation is masked: 0 = no deform, 1 = full deform.
                     PAIRS WITH paint_vertex_map_from_formula / radial.

    Procedural-mask creative loop in 2 calls:
      1. paint_vertex_map_radial(target=Cube, vmap_name=mask, radius=80,
                                 falloff=smooth)
      2. apply_deformer(target=Cube, deformer_type=bend,
                        params={strength_deg: 60}, restrict_vmap=mask)
      → Cube bends only inside the radial mask. Full procedural workflow.

    UNSAFE — mutates the scene. Wrap in begin/end_undo_group for
    reversibility.
paint_vertex_map_from_formula tool
Paint a vertex map by evaluating a math formula per vertex.

    Available variables in the formula:
      - x, y, z   : object-local vertex coords
      - wx, wy, wz: world-space vertex coords
      - i         : 0-based vertex index
      - n         : total vertex count
      - bx, by, bz: object-local bbox center
      - rx, ry, rz: object-local bbox half-extent

    Available functions:
      sin, cos, tan, asin, acos, atan, atan2,
      sqrt, exp, log, log2, log10, floor, ceil,
      abs, min, max, pow, pi, e, tau,
      clamp(v, a, b), lerp(a, b, t), smoothstep(a, b, x).

    No imports / builtins reachable — sandboxed AST eval. Result is
    clamped to [0, 1] by default (set clamp=False to write raw values).

    Example formulas:
      "sin(x * 0.05) * 0.5 + 0.5"            # horizontal wave
      "smoothstep(0, 100, sqrt(x*x + z*z))"  # radial gradient
      "abs(sin(x*0.05) * cos(z*0.05))"       # checker-like
      "1.0 if y > 0 else 0.0"                # half-mask
paint_vertex_map_radial tool
Paint a vertex map with a radial gradient from a center point.

    Args:
      target: poly mesh name
      vmap_name: name of the vmap (created if missing, overwritten if exists)
      center: [x, y, z] center point (default: object bbox center)
      radius: distance at which gradient hits outer_value (default: bbox max-radius)
      inner_value: weight at the center (default 1.0)
      outer_value: weight at radius and beyond (default 0.0)
      falloff: 'linear' (default) | 'smooth' (smoothstep) | 'quadratic'
      space: 'local' (default — use vert local coords) or 'world'

    Example: paint a soft circular mask at world origin with radius 200,
    inner=1.0 outer=0.0, smooth falloff — perfect for driving a Bevel
    deformer's strength via a vertex map.
scene_nodes_status tool
Survey the Scene Nodes graphs present in the active document.

    Returns:
      - is_node_based: doc in node-based-scene mode (Scene Nodes is the
        source of truth, not the classic hierarchy)
      - nimbus_refs: list of doc-level graphs (one per node space)
      - per_object_graphs: per-object embedded graphs (Capsule generators)
      - hint_open_editor + hint_message: when no graph exists yet, how to
        bootstrap one

    Read-only. Run before any graph-mutation tools to know what context
    you're working in. Scene Nodes graphs in C4D 2026 live in the
    `net.maxon.scenenodes.basescenenodesnodespace` space; the doc-level
    one is created on-demand the first time anything (a UI panel or a
    `scene_nodes_create_graph` call) references it.
scene_nodes_create_graph tool
Bootstrap a Scene Nodes graph on the doc (or on a specific object).

    Idempotent — if a graph already exists at the target/space, returns
    info about the existing one without modification. UNSAFE (mutates
    doc state when creating).

    Args:
      space: 'scenenodes' (default — the standard Scene Nodes editor
             space) or 'core' (low-level node space).
      target_object: object name. If set, creates a per-object embedded
        graph on that object (Capsule pattern). If None, operates on the
        doc-level graph.

    Use case: when scene_nodes_status reports `hint_open_editor=True`,
    call this to create the doc-level graph programmatically without
    needing the user to open the Scene Nodes editor manually.
scene_nodes_walk tool
Walk a Scene Nodes graph and return a typed structural summary.

    Use this to discover what nodes exist in a graph + their hierarchy.
    Pairs with the planned scene_nodes_add_node and scene_nodes_connect_ports
    for graph editing — first walk to learn what's there, then mutate.

    Args:
      target_object: object name. If set, walks the per-object embedded
        graph (Capsule pattern). Default: doc-level scene-nodes graph.
      max_depth: how deep to recurse (default 2). Top-level always included.
      include_ports: include port (kind 2/4) entries (default False —
        they clutter; set True for debugging connections).

    Returns:
      {ok, host, max_depth, root: {id, kind, kind_name, is_root,
       input_count, output_count, child_count, children: [...]}}

    Node kinds:
      - 1 = node (the kind you usually care about)
      - 2 = output port
      - 4 = input port

    For doc-level graph, expect 6 root children:
      - net.maxon.neutron.scene.root (the actual scene tree)
      - context_externaltimeinput, context_notime (time contexts)
      - builder (where user-driven node-additions accumulate)
      - graph-level input + output ports

    Read-only.
scene_nodes_record_gesture tool
Record a manual editor gesture as a structural before/after diff.

    The gesture-differ. Snapshots the Scene Nodes graph state on `start`,
    waits for the user to perform a manual editor action (right-click "Add
    Input", drag-wire, "Convert to Asset", etc.), then snapshots again on
    `stop` and returns the precise structural diff: nodes/ports/connections
    added or removed, classified into known patterns when recognizable.

    Why: many Node Editor gestures (notably FIO Add Input) are not exposed
    via any documented Maxon API. We can't *call* them — but we can observe
    what they do and reproduce the outcome via public Scene Nodes API. The
    diff IS the recipe.

    Args:
      action: 'start' | 'stop' | 'diff'
        - start: take the "before" snapshot
        - stop:  take the "after" snapshot, compute and return the diff
        - diff:  re-emit the last computed diff (idempotent)
      target_object: optional. If set, records the per-object embedded graph
        (Capsule pattern). If None, records the doc-level graph. Must match
        between start and stop.
      label: tag this recording (e.g. "right-click-add-input-1")
      include_params: include port parameter values in the snapshot
        (default True — costs a few ms but adds richer diff context)

    Returns on stop:
      {ok, label, graph_target, summary: {before/after counts}, diff: {
        added_nodes, removed_nodes, added_ports, removed_ports,
        added_connections, removed_connections, param_changes
      }, classification: {kind, confidence, evidence}}

    Read-only — never mutates the graph. The mutation comes from the user's
    manual gesture between start and stop. Pairs with the planned
    scene_nodes_synthesize_recipe to turn diffs into reproducible
    GraphDescription / transaction recipes. See docs/gesture_differ_design.md.
scene_nodes_synthesize_port tool
Add an AM-exposed user parameter to a Scene Nodes Generator's root,
    wired through to a specific inner-node port.

    One call replaces the manual workflow: right-click "Add Input" → pick
    Type in Resource Editor → drag wire to inner node port. The result is a
    port that:
      - Appears in the Scene Nodes Generator's Attribute Manager
      - Renders the correct widget (slider for Float, integer field for Int,
        Vector XYZ field, checkbox for Bool, etc.)
      - Drives the inner node's parameter when the user drags it

    Recipe (the breakthrough — connection IS the type system):
        AddPort(name)
        SetPortValue(typed_default)            # initial value
        SetValue("net.maxon.node.base.name", display_label)
        Connect(target_typed_inner_port)       # provides widget type binding

    The `Connect` call is REQUIRED — that's where the widget binding comes
    from. C4D's runtime infers the port's type from the connected downstream
    port. Calling AddPort + SetPortValue alone produces a locked text widget
    in the AM; the connection is what makes it draggable.

    Args:
      target_object: name of the Scene Nodes Generator (e.g. 'My Generator')
      name: port identifier — becomes the GraphNode Id
      target_node_id: id of the inner node to wire to (e.g. 'cylinder' or a
        custom-named node like 'claudes_cylinder'). Must be at the root
        level of the SN Generator's graph.
      target_port_id: port id on target_node_id (e.g.
        'net.maxon.command.modeling.primitive.cylinder.radius').
        Use scene_nodes_walk(target_object=..., include_ports=True) to list
        available port ids.
      direction: 'in' (default) or 'out' — port direction on the root
      data_type: 'float' (default) | 'int' | 'vector' | 'bool' | 'string' —
        used to construct the typed default value. Actual runtime type comes
        from the connected target.
      default_value: optional Python primitive matching data_type
      display_label: optional user-facing label for the AM (defaults to
        identifier)

    Returns JSON:
      {ok, target_object, name, port_id, port_path, descid, wired_to,
       direction, data_type, method}

    UNSAFE — mutates the graph.

    See docs/gesture_differ_findings.md for the full reverse-engineering
    history (the wall we hit on C++ attribute derivation, and how the
    connection-based type inference path bypasses it).
scene_nodes_open_editor tool
Open the Scene Nodes editor window for the doc-level graph.

    Useful when the user wants to inspect what's in the graph or switch
    to manual editing. UNSAFE (UI side effect).
cinema4d_knowledge_index tool
Return the curated cinema4d-mcp knowledge manifest.

    The MCP ships with a small set of carefully curated reference material
    (Scene Nodes recipes, C4D 2026 API gotchas, asset indexes, etc.) that
    captures production-grade C4D knowledge not in any LLM's training data.
    Call this first to discover what topics are available, then use
    cinema4d_knowledge_get to fetch a specific doc or section, or
    cinema4d_knowledge_search to grep across the tree. Read-only.
cinema4d_knowledge_get tool
Fetch a curated knowledge file (or a specific markdown section).

    Args:
      path: relative path under docs/ or data/, e.g.
            "docs/scene_nodes_nodebase_study.md" or "data/scene_nodes_atlas.json"
      section: optional markdown heading text (case-insensitive substring match);
               returns only that section's body. Ignored for non-markdown.
      max_bytes: cap on returned content (default 200000 ≈ 200 KB).

    Use cinema4d_knowledge_index first to discover available paths.
    Read-only.
cinema4d_knowledge_search tool
Grep across the curated knowledge tree (docs/ + data/).

    Args:
      query: substring to match (case-insensitive, min 2 chars).
      max_matches: cap on returned matches (default 100).
      extensions: file extensions to search, e.g. ["md", "json"].
                  Defaults to both.

    Returns matches with path + line number + snippet. Use
    cinema4d_knowledge_get to fetch the surrounding context. Read-only.
scene_nodes_dissect_capsule tool
Dissect a Capsule (or any object with an embedded Scene Nodes graph)
    and return the asset IDs of every node found inside it.

    Capsules wrap a Scene Nodes graph behind a classic-object facade. The
    asset browser is full of them — Primitive ▶ Cube, Modifier ▶ Bevel,
    Effects ▶ Procedural Hair, etc. Each one is the richest source of
    asset IDs we have for building our own graphs programmatically.

    Args:
      target_object: name of the object to dissect. If None, auto-scans
        the doc for ALL capsule-class objects (Capsule, Scene Nodes
        Generator/Deformer, Capsule Field, Simulation Scene) and dissects
        each one.
      max_depth: recursion cap on the inner graph walk (default 8).
      include_ports: include port-node IDs alongside true node IDs
        (default False — usually noise).

    Returns:
      JSON with `scanned` (per-object dissection stats), `unique_asset_ids`
      (union across all scanned), and `registry_size` (cumulative across
      session — the plugin caches discovered IDs for downstream
      scene_nodes_add_node calls).

    Read-only.
scene_nodes_list_assets tool
List Scene Nodes asset IDs known to this plugin instance.

    Two sources:
      - 'discovered' (default): the cumulative registry built from prior
        scene_nodes_dissect_capsule calls in this session. Most reliable —
        these are IDs we've actually proven exist in this C4D install.
      - 'repository': probes maxon.AssetInterface.GetUserPrefsRepository()
        via FindAssets to enumerate registered scene-nodes assets. Slower,
        SDK-version-dependent.
      - 'both': returns both side-by-side.

    Args:
      source: 'discovered' / 'repository' / 'both'
      filter_substring: case-insensitive substring filter on asset IDs.

    Read-only.
scene_nodes_add_node tool
Add a node to a Scene Nodes graph by asset ID.

    Uses GraphDescription.ApplyDescription with `{"$type": <asset_id>, ...}`
    to materialize the node. The asset_id must be one previously discovered
    (via scene_nodes_dissect_capsule or scene_nodes_list_assets), or a
    canonical ID like `net.maxon.neutron.corenode.<name>`.

    Args:
      asset_id: the asset/node-template ID
      graph_target: object name whose embedded graph to add into. Default:
        doc-level scenenodes graph.
      node_name: friendly name (used as `$name` in the description)
      extra_spec: extra fields merged into the description dict — e.g.
        parameter values keyed by port name.

    UNSAFE — mutates the graph. Wrap in begin_undo_group for reversibility.
scene_nodes_atlas_lookup tool
Search the Scene Nodes atlas — templates, patterns, port types,
    anti-patterns, vocabulary classifications.

    The atlas bundles 802 known node-template canonical IDs (categorized
    into 16 buckets), 13 codified patterns, port-type taxonomy with
    conversion paths, and anti-pattern guides — extracted from analysis
    of 9 real-world scenes (Squiggle Spline, Time Offset, Explode
    Segments, Scaffolds, Whirlpool, City Generator, Fractal Trees,
    Balloon Inflate, Edge to Spline + Ivy Generator).

    Args:
      query: search term (substring or exact)
      kind: 'template' | 'pattern' | 'port_type' | 'antipattern' | 'class' | 'any'
      limit: max results (default 30)

    Read-only.
scene_nodes_classify_graph tool
Classify a Scene Nodes graph — function-class distribution, detected
    patterns, probable purpose, loop-carried-state count.

    Walks the graph, builds a node-vocabulary histogram, compares against
    13 known pattern signatures (reaction_diffusion, surface_clinging_growth,
    spline_break_by_threshold, etc.), and returns a structured semantic
    summary.

    Args:
      target_object: object whose embedded graph to classify (default: doc-level)
      max_depth: walk depth (default 12)

    Read-only.
scene_nodes_apply_pattern tool
Materialize a known Scene Nodes pattern into a graph by name. The
    "I GOT YOU EASY" tool — synthesizes the canonical node skeleton.

    13 patterns available:
      - loop_over_indices, loop_over_polygons, loop_over_points,
        loop_over_spline_segments
      - reaction_diffusion_on_geometry
      - surface_clinging_growth, stochastic_branching_decision
      - spline_break_by_threshold, spline_resample_with_displacement
      - mesh_element_query_by_selection, selection_evolution_chain
      - per_vertex_property_storage, object_instancing_with_variation

    Use scene_nodes_atlas_lookup kind='pattern' to see params per pattern.

    Args:
      pattern_name: registered pattern name
      params: pattern-specific kwargs (see atlas)
      graph_target: object whose embedded graph to mutate (default: doc-level)
      dry_run: if True, return spec WITHOUT applying

    UNSAFE — mutates the graph. Wrap in begin_undo_group for reversibility.
scene_nodes_connect_ports tool
Wire two Scene Nodes by port name. Auto-handles type mismatches
    via the atlas port_type_taxonomy.

    Args:
      from_node: source node name (or instance hash form)
      from_port: output port name
      to_node: destination node name
      to_port: input port name
      graph_target: object whose embedded graph to mutate (default: doc-level)
      auto_convert: insert conversion node on type mismatch (default True)

    UNSAFE — mutates the graph.
scene_nodes_create_capsule_with_pattern tool
Create a fresh Scene Nodes Generator/Deformer object AND populate
    its embedded graph with the named pattern. The "I GOT YOU EASY"
    artist-facing entrypoint — one call, capsule appears in the object
    tree, ready for parameterization via the Attribute Manager.

    This is the canonical capsule-first authoring tool. Instead of
    apply_pattern (which mutates the doc-level graph), this creates a
    self-contained capsule object the artist can drag/drop, parameterize,
    and store Selection Tags from per the bidirectionality principle.

    22 patterns available — call scene_nodes_atlas_lookup kind='pattern'
    for the catalog. Examples:
      - 'procedural_surface_scatter' (host=mesh, count=200)
      - 'hash_threshold_selection' (threshold=0.3, seed=42)
      - 'memory_capsule_state_carrier' (the simplest possible capsule)
      - 'reaction_diffusion_on_geometry' (Gray-Scott on mesh)

    Args:
      pattern_name: registered pattern name (per atlas)
      capsule_type: 'generator' (180420700, default) | 'sn_gen_a' (180420500)
        | 'sn_gen_b' (180420600) | 'sn_gen_c' (180420700) | 'deformer'
        (180420400) | 'capsule' (5171)
      capsule_name: name for the new object (default: derived from pattern_name)
      params: pattern-specific kwargs (see atlas)

    UNSAFE — inserts an object into the doc and mutates its graph.
scene_nodes_add_floating_io_port tool
Add a named port to a Floating IO node via the C++ shim's AddPort
    wrapper. Replicates what the C4D editor does on drag-wire when an
    artist exposes a parameter — the singular GraphModelInterface::AddPort
    isn't wrapped in Python's maxon.frameworks, so we route through the
    C++ companion plugin (cinema4d_mcp_helper).

    Phase A.1 (2026-04-30): requires the C++ shim built + installed +
    C4D restarted. Verify via scene_nodes_helper_ping first.

    Args:
      graph_target: name of the BaseObject hosting the Scene Nodes graph.
      fio_node_id: Floating IO instance ID. Full ID ('floatingio@HASH')
        or just the last segment — both match.
      port_name: exact name for the new port. Convention from Maxon's
        shipped capsules:
          hiddenin1.<canonical.attribute.path>  for input side
          in1.<canonical.attribute.path>        for output side
      direction: 'input' (default) or 'output'. Determines whether the
        port is added to the FIO's inputs or outputs container.

    Returns: {ok, new_port_id, status, status_msg, protocol_version, ...}

    UNSAFE — mutates the graph. Always verify via scene_nodes_walk
    post-call to confirm the port actually appeared.
scene_nodes_bulk_swap_nodes tool
Route Scene Nodes bulk node-replacement specs through the C++ helper.

    Current state: C++ scaffold only. This proves the MCP -> C4D Python ->
    C++ helper contract and returns audit rows, but intentionally refuses
    mutation until the preflight + atomic-swap body is implemented.

    Args:
      swap_specs: line-separated specs in the format
        og_id|my_name|asset_id
      timeout_s: helper timeout in seconds.

    Returns:
      {ok, status, status_msg, implementation_stage, audit_rows}

    UNSAFE once mutation is enabled. For now mutation_enabled=false.
scene_nodes_helper_logger tool
Phase A.2 diagnostic — drive the C++ shim's promiscuous CoreMessage
    logger. Used to identify what messages fire during a manual editor
    gesture (e.g. right-click port → Add Input/Add Output).

    Workflow:
      1. action='start'  — enable the logger
      2. (manually perform the gesture in C4D's Node Editor)
      3. action='stop'   — disable the logger
      4. action='read'   — return the captured log
      5. action='clear'  — empty the log buffer

    Per GPT review: this is a CHEAP FIRST NET. Empty log does NOT prove
    "no command exists" — it only proves the legacy CoreMessage path is
    empty. If the probe returns nothing useful, Phase A.2.1
    (CommandObserverInterface subscription via the maxon command
    framework) is the actual definitive probe.

    Args:
      action: one of 'start', 'stop', 'read', 'clear'

    Returns: {ok, action, status, status_msg, log_dump (read only)}

    SAFE — instrumentation only.
scene_nodes_helper_ping tool
Probe whether the cinema4d_mcp_helper C++ companion plugin is loaded
    and discoverable.

    The C++ shim adds two Scene Nodes primitives that aren't exposed in
    Python: GraphModelInterface::AddPort (named-port creation on Floating
    IO nodes) and NodeTemplate-typed asset publishing (.c4dnodes format
    that surfaces FIO routing as Attribute Manager parameters). This
    tool reports whether the shim has been built + installed.

    Phase A.0 (2026-04-30): Verifies the .cdl64 plugin loaded; subsequent
    phases wrap the actual primitives. Build via scripts/build_cpp_shim.sh
    and the C4D 2026 SDK Visual Studio solution.

    Returns: {ok, helper_loaded, helper_id, helper_name, hint?}

    SAFE — read-only plugin discovery.
scene_nodes_save_as_asset tool
Save an SN Generator (or any BaseObject) + its embedded graph as a
    reusable user asset in the C4D asset browser. Wraps
    maxon.AssetCreationInterface.CreateObjectAsset.

    Produces a `net.maxon.assettype.file`-typed asset (`.c4d` format).
    Bit-identical round-trip via scene_nodes_load_asset, but does NOT
    register as `net.maxon.node.assettype.nodetemplate` (the type
    Maxon's shipped capsules like Edge to Spline use). Inner Floating
    IO routing is preserved structurally; AM-param surfacing requires
    NodeTemplate publishing which isn't exposed in Python.

    Useful regardless: pattern libraries, programmatic graph templates,
    capturing curated workflows for later reuse via the asset browser.

    Args:
      object_name: name of the BaseObject in the active doc to save.
      asset_name: human-readable asset name. Defaults to object_name.
      asset_version: version string. Defaults to '1.0'.
      asset_id: explicit asset Id. Empty -> system generates one.
      parent_category: asset category Id. Defaults to
        'net.maxon.assetcategory.uncategorized'.

    Returns: {ok, asset_id, asset_url, asset_type_id, asset_version, note}

    UNSAFE — writes to the user prefs asset repository on disk.
scene_nodes_load_asset tool
Load a previously-saved asset into the active doc by its asset ID.
    Programmatic equivalent of dragging from the asset browser. Wraps
    maxon.AssetManagerInterface.LoadAssets.

    Args:
      asset_id: the asset ID returned by scene_nodes_save_as_asset
        (e.g. 'file_CXHeLCR9PJjqXvZlkjg5RB').

    Returns: {ok, asset_id, loaded, top_level_objects_after}

    UNSAFE — inserts content into the active doc.
scene_nodes_describe_node_template tool
Discover a node template's port schema by adding it to a temp graph,
    walking inputs/outputs, removing it. The "what are this node's ports
    called?" tool.

    Solves the runtime port-discovery problem: my pattern synthesizer
    initially used port names like 'from'/'to'/'step' for Range, but
    Range's actual ports are 'start'/'end'/'domain'. This tool exposes
    the truth.

    Args:
      label: English UI label (same as ApplyDescription's $type)
      graph_target: graph for the temp probe (default: doc-level)

    Returns: {label, basename_observed, inputs, outputs, inner_nodes, port_summary}

    Adds + removes the node — non-destructive.
begin_undo_group tool
Open a C4D undo group: every mutation until end_undo_group is merged
    into ONE undo step in C4D's history.

    Pattern for any multi-step Claude operation that should be reversible
    as a unit:
      begin_undo_group("Build chair frame")
      add_primitive(...)
      modify_object(...)
      run_modeling_command(...)
      end_undo_group()
      # User pressing Cmd-Z now undoes the entire build, not just the last op.

    Args:
      name: human-readable label shown in C4D's Edit > Undo menu.

    Always pair with end_undo_group. Nesting is permitted (C4D handles it
    via internal counter); the response includes a stack-depth warning if
    you nest unintentionally.
end_undo_group tool
Close the most recently opened undo group. Pairs with begin_undo_group.

    Idempotency note: calling without an open group returns ok=False with a
    clear error — never a silent no-op.
undo tool
Undo the most recent C4D undo group(s) — equivalent to user Cmd/Ctrl-Z.

    Args:
      steps: how many undo groups to roll back (default 1, max 100).

    Returns counts of requested vs actually-performed steps so you can
    detect when the undo stack runs out.
redo tool
Redo the most recently undone C4D undo group(s) — Cmd/Ctrl-Shift-Z.

    Args:
      steps: how many redo groups to replay (default 1, max 100).
ping tool
Cheapest possible liveness probe.

    Returns plugin version, C4D version, server time, and an echoed string
    (truncated to 1KB) so a client can correlate beyond request_id.

    Use for heartbeat / connection health checks. Does NOT touch C4D state,
    does NOT acquire the main thread. Safe to call thousands of times per
    minute. If you need scene-state info too, use `doctor` instead.

    Args:
      echo: optional string echoed back in the response. Useful for
            client-side correlation when you have many concurrent pings.
doctor tool
Run a series of health checks against the live MCP/plugin/C4D bridge.

    Plugin-side checks (each independent — failure of one doesn't prevent the others):
      1. Main thread responsive (round-trip a no-op via execute_on_main_thread)
      2. Active document accessible
      3. Active BaseDraw + camera ready
      4. Console log buffer hook installed
      5. Auth state

    Args:
      with_smoke_recipe: if True, ALSO run scene_snapshot_diff_roundtrip
        as a smoke test. Verifies end-to-end creative-loop machinery
        (snapshot + mutate + assert) works, not just plumbing. Adds ~100ms.

    Use this when something feels off — wedged main thread, "no active doc",
    or the socket is responding but tools aren't behaving. Returns structured
    pass/fail with timing info per check.
viewport_screenshot tool
Capture a viewport-style screenshot of the active C4D scene.

    `renderer` options:
      - 'hardware' (default): C4D's OpenGL preview renderer. Always works,
        doesn't need a scene light, fast. Use this unless you need otherwise.
      - 'standard': C4D's software renderer. WARNING: in installs with Octane
        (or some other 3rd-party render plugin), Octane's hooks intercept the
        Standard pipeline and produce all-black output. The plugin auto-detects
        an all-black render and falls back to 'hardware', surfacing a warning
        in the response. Standard also requires at least one scene light.
      - 'current': render through the user's active engine (Octane/Redshift).
        Note: Octane viewport_screenshot output may not match the live Octane
        viewer — verify Octane-specific behavior in C4D directly.

    `save_path` options:
      - None (default): the image is returned inline as a base64 PNG.
        Practical limit ~800x450 due to MCP response token budget (~60K).
      - file path: the PNG is written to disk and the response returns
        {path, width, height, renderer} instead of base64. Use this for
        captures larger than ~1024x768, or when the inline path
        exceeds the token budget.
viewport_screenshot_multiview tool
Capture multiple viewport angles in a single call by toggling the active
    BaseDraw projection between captures.

    Args:
      width / height: per-view dimensions (default 400x300 — kept small so 4
          views fit under the MCP token budget when returned inline).
      renderer: 'hardware' (default), 'standard', or 'current'. Same semantics
          as `viewport_screenshot`.
      views: subset of ['perspective', 'top', 'front', 'right', 'left',
          'bottom', 'back']. Default: ['perspective', 'top', 'front', 'right'].
      save_dir: if provided, each PNG is written to this directory as
          `multiview_<viewname>.png` and the response returns file paths
          instead of inline base64. Use this when capturing at higher
          resolutions that would blow the token budget.

    The original viewport projection is restored after capture.
set_viewport_shading_mode tool
Set the active viewport's shading mode and/or line overlay.

    Wraps BASEDRAW_DATA_SDISPLAYACTIVE / SDISPLAYINACTIVE / WDISPLAYACTIVE /
    WDISPLAYINACTIVE / LINES_ON_SHADING_ACTIVE in C4D 2026.

    `mode` — surface shading:
      - 'gouraud'       : full shading with lights (default)
      - 'gouraud_wire'  : gouraud + wireframe overlay (built-in)
      - 'quick'         : quick gouraud (faster)
      - 'quick_wire'    : quick + wireframe overlay
      - 'flat'          : faceted flat shading (no smooth normals)
      - 'flat_wire'     : flat + wireframe overlay
      - 'hidden_line'   : wireframe with hidden lines removed (line drawing)
      - 'noshading'     : flat constant-color (silhouette/matte)

    `line_overlay` — separate wire/iso overlay (orthogonal to mode):
      - 'none'          : no overlay
      - 'wire'          : show wireframe over shading
      - 'isoparms'      : show isoparm lines (SDS cage / NURBS)
      - 'box'           : bounding box overlay
      - 'skeleton'      : object axis triads

    Both can be combined: e.g. mode='gouraud' + line_overlay='wire' gives
    "shaded with wireframe" — invaluable for topology debugging. The combo
    'gouraud_wire' shading mode builds wireframe in directly without needing
    the line_overlay setting; use that for slightly better consistency.

    Returns previous values so callers can restore state.
run_modeling_command tool
Run a Cinema 4D modeling command (`SendModelingCommand`) on one or more objects.

    Wraps the most-needed C4D modeling operations. For ops that operate on
    selections (bevel, inset, smooth on selected polys), use `mode` to
    specify the selection level.

    Args:
      op: canonical op name. Supported:
        - 'axis_center'             — recenter the object's axis to its bbox
                                       center (the canonical fix for
                                       post-Disconnect/Split frozen-coord polys).
                                       Params: center_mode='bbox' | 'world_center' | 'keep'
        - 'optimize'                — weld coincident verts, drop unused points,
                                       merge redundant polys.
                                       Params: tolerance (float, scene units, default 0.01),
                                               merge_points (bool, default True),
                                               merge_polys (bool, default True),
                                               remove_unused (bool, default True)
        - 'make_editable'           — convert generators (primitives, sweeps,
                                       lofts, etc.) to editable polygon meshes.
                                       Equivalent to pressing 'C' in C4D.
        - 'current_state_to_object' — bake generator output into a static mesh
                                       at its current evaluation state.
                                       Same effect for primitives;
                                       different for SDS/cloners (bakes
                                       smooth/clone state, not just makes editable).
        - 'subdivide'               — subdivide each polygon.
                                       Params: levels (int, default 1),
                                               hyper (bool, default False;
                                               True = HyperNURBS-style smoothing).
        - 'smooth'                  — laplacian smooth on points / point selection.
                                       Params: strength, iterations, smooth_type
        - 'bevel'                   — bevel selected edges.
                                       Params: offset, subdivision
        - 'inset'                   — inner-extrude selected polys.
        - 'extrude'                 — extrude selected polys.
        - 'connect' / 'split' / 'disconnect' / 'delete'
        - 'polygonize' / 'triangulate' / 'untriangulate'

      targets: list of object names or GUIDs. If empty/None, uses the
        current Object Manager selection.
      params: op-specific keyword args (see per-op notes above). Optional.
      mode: 'all' | 'points' | 'edges' | 'polygons' — selection level the
        command operates on. Default 'all'.

    Returns: per-target status including any newly created objects (e.g.
    make_editable returns a new editable mesh; the original generator is
    replaced).

    Examples:
      - Recenter axes on every selected piece (the post-Split fix):
          run_modeling_command(op='axis_center')
      - Weld coincident verts on the active mesh:
          run_modeling_command(op='optimize', params={'tolerance': 0.01})
      - Bake a Cloner's output into static geometry:
          run_modeling_command(op='current_state_to_object', targets=['MyCloner'])
vertex_map_stats tool
Compute statistics for a Vertex Map tag on a polygon mesh.

    Returns: vertex count, min/max/sum/mean weight, painted_count (weight > 0),
    zero/full counts, and a 10-bin histogram of the weight distribution.

    Args:
      target: object name; defaults to active selection.
      vmap_name: specific vertex map name; defaults to first vertex map tag found.

    Useful for verifying a painted hole map has the expected coverage before
    using it as a Field source or driving a polygon selection.
vertex_map_threshold_to_polygon_selection tool
Convert a vertex map weight threshold into a polygon selection tag.

    For each polygon, evaluates whether the polygon's vertices meet the
    threshold and selects the polygon if so:

      - require_all=False (default): polygon is selected if ANY vertex
        has weight >= threshold (broad — picks edge polygons where painting
        bleeds onto a single corner)
      - require_all=True: polygon is selected only if ALL vertices have
        weight >= threshold (conservative — only fully-inside polygons)

    Result is a polygon selection tag named `selection_name` on the target.
    From there you can drive any operation that takes a polygon selection
    (Boolean, Inner Extrude + Delete for hole-cutting, Field Layer, etc.).

    Args:
      target: object name; defaults to active selection.
      vmap_name: specific vertex map name; defaults to first found.
      threshold: weight cutoff in [0, 1]. Default 0.5.
      require_all: see above. Default False (any-vertex match).
      selection_name: name for the resulting polygon selection tag.
      replace_existing: if a selection tag with this name exists, overwrite it.

    Pipeline example: paint hole regions with a vertex map → run this with
    threshold=0.5 → use `run_modeling_command(op='delete', mode='polygons')`
    to cut the hole pattern in real geometry.
uv_layout_stats tool
Compute layout stats for a polygon mesh's UV tag.

    Walks the UV layout, detects islands via union-find on shared UV
    vertex positions, measures per-island bbox + area in both UV space
    and 3D space (giving a distortion ratio = sqrt(world_area/uv_area)
    which is the local texel-density factor), and detects shell overlap
    via 32x32 UV grid binning + 3D-spread heuristic.

    Returns:
      - global UV bbox
      - island_count
      - per-island stats: polygon_count, uv_bbox, uv_area, world_area,
        distortion (local texel density factor)
      - overlap_grid: cells with high 3D-spread (sign of mirrored or
        stacked UV shells, which break naive UV→3D pipelines)

    Use cases:
      - sanity check before running UV-flatten / hole-cut workflows
      - identify oversized or undersized UV islands (texel density
        comparison)
      - detect mirrored/overlapping shells before they cause issues
      - estimate proper texture resolution per island
sample_bitmap_at_uv tool
Sample a bitmap at every vertex's UV coord, write to a vertex map.

    The "Photoshop mask → procedural mesh attribute" bridge. Lets you paint
    a black/white mask (or any image) externally, save as PNG, and bake
    the per-pixel values into a vertex map on the mesh — at which point
    every other procedural tool that takes a vertex map (Field source,
    threshold-to-polygon-selection, MoGraph effector, etc.) can drive off it.

    For each vertex, the per-vertex UV is computed by averaging the UVs
    from all polygons referencing it (handles UV seams gracefully — verts
    on a seam end up with one of their UV positions, doesn't matter which
    since both correspond to the same 3D point).

    Args:
      bitmap_path: file path of source bitmap (any format C4D supports).
      target: object name; defaults to active selection.
      vmap_name: name of the output vertex map (created if not present,
                 overwritten if it is). Default 'baked'.
      channel: which bitmap channel to read.
        - 'luminance' (default): perceptual gray (0.299R + 0.587G + 0.114B)
        - 'red' / 'green' / 'blue' / 'alpha'
        - 'average': simple (R+G+B)/3
      invert: if True, output 1.0 - value.
      gamma: apply pow(value, gamma) to each sample. Default 1.0 (off).
      v_flip: if True (default), flip V axis to account for image-Y vs UV-Y
              direction mismatch. Set False if your bitmap was authored
              UV-up.

    Returns: counts (sampled, skipped), min/max/mean of resulting weights,
    plus echo of the bitmap params used.

    Pipeline example: paint hole regions in Photoshop / Painter as a B/W
    mask → save as hole_mask.png → sample_bitmap_at_uv(hole_mask.png) →
    vertex_map_threshold_to_polygon_selection(threshold=0.5) →
    run_modeling_command(op='delete', mode='polygons').
uv_islands_to_objects tool
Split a polygon mesh into separate objects, one per UV island.

    Output objects retain their original 3D positions (NOT flattened).
    UV tag and any vertex map tags are carried over with weights remapped.
    Each island's polygons become an independent polygon mesh.

    Args:
      target: object name; defaults to active selection.
      quantize: UV-position dedup precision (default 6 decimal places).
      name_prefix: prefix for new objects. Default = source name.
                   Output named "{prefix}_island_00", "_island_01", ...
                   (sorted largest-first).
      parent_name: optional Null name to parent results under.
                   Created if not present at top level.
      min_polygons: skip islands smaller than this. Default 1.

    Returns: per-island stats + naming + parent.

    Use cases:
      - process each panel of a chair / shoe / car independently
        (different hole density per panel, different material)
      - export each piece separately for fab / 3D print
      - apply per-island procedural workflows (Spikr scatter at
        different rates, MoGraph effectors per region, etc.)
      - debugging UV layout — see each island as a separate object
sample_vmap_via_uv tool
Transfer a vertex map from source mesh to dest mesh via shared UV space.

    The Blender / Houdini "Sample UV" pattern: for each vertex in dest, look
    up its UV, find the source triangle containing that UV, barycentric-
    interpolate the source's vmap weights at that triangle's vertices, and
    write the result to dest's vmap.

    Both meshes must have UV tags. Topology can differ — that's the whole
    point. The UV correspondence is what carries the data across.

    Args:
      source: source object name (must have UV + vmap tags)
      dest:   destination object name (must have UV)
      src_vmap_name: source vmap name; defaults to first found
      dest_vmap_name: dest vmap name; defaults to source vmap name
      v_flip: flip V before lookup (use if source/dest UVs disagree on V direction)
      fallback_value: value written for dest verts whose UV falls outside
                      any source UV island. Default 0.0.

    Returns: per-vertex sampling stats + new vmap weight distribution.

    Pipeline use cases:
      - Bake low-res sculpt mask onto high-res sculpt via shared UVs
      - Transfer a painted hole map from a flat UV-layout mesh onto the
        original curved chair (the inverse of unflatten_uv_to_geo)
      - Move per-region weights between LOD versions of the same model
uv_from_projection tool
Generate UVs procedurally via standard projection types.

    Useful when you have a mesh without UVs (or with bad UVs) and need to
    quickly establish a baseline UV layout — for texturing, for using as
    a sample-source for sample_vmap_via_uv / uv_transfer, etc.

    Args:
      projection: required, one of:
        - 'box'      : cubic projection — each polygon picks the world
                       axis its normal aligns with most strongly, projects
                       onto that plane
        - 'sphere'   : spherical (longitude/latitude around `up_axis`)
        - 'cylinder' : cylindrical (azimuth around `up_axis`, height = up axis)
        - 'planar_xy': drop Z (use X,Y as U,V) — flat top/bottom view
        - 'planar_xz': drop Y (use X,Z as U,V) — flat front/back
        - 'planar_yz': drop X (use Y,Z as U,V) — flat left/right
      target: object name; defaults to active selection.
      space: 'local' (default — use vertex coords as-is) or 'world'
        (apply object transform first).
      tile_u, tile_v: repeat factor; 1.0 = single span across the bbox.
      offset_u, offset_v: UV offset.
      up_axis: 'x' / 'y' / 'z' — for sphere/cylinder, defines the polar axis.

    Returns: target name, projection used, generated UV bbox, params echoed.

    UV tag is created if missing on target.

    Use cases:
      - Establish UVs on a Volume Mesher / Boolean output that lost them
      - Build tileable UVs for procedural texturing
      - Quick UV baseline before hand-tweaking
      - Generate sample-source UVs to feed sample_vmap_via_uv
get_viewport_state tool
Return the active viewport's state: dimensions, frame rect, active camera matrix,
    projection mode, and active renderer. Useful for debugging plugin viewport draws.
list_render_engines tool
List all registered render engines (VideoPost plugins) and flag the active one.

    Critical for verifying that custom viewport-renderer plugins (custom GLSL
    shaders, third-party engines, etc.) registered correctly. Also surfaces
    Octane, Redshift, Arnold, Standard, etc. with their plugin IDs.
get_active_renderer tool
Return the active document's renderer id, name, and resolution.
tap_octane_log tool
Read recent lines from the C4D Octane plugin log file (`c4doctanelog.txt`).

    SERVER-SIDE TOOL — does not require a live C4D connection. Reads the file
    directly from `%APPDATA%/Maxon/Maxon Cinema 4D <VER>_<HASH>/c4doctanelog.txt`.
    Auto-discovers the path by globbing if log_path is not provided; if multiple
    C4D versions are installed, prefers the highest-numbered (newest).

    Args:
        lines: how many trailing lines to return (default 200, max 5000)
        contains: case-insensitive substring filter on message content
        level: filter by log level — 'Info' | 'Warning' | 'Error'
        log_path: explicit path override (skip auto-discovery)
find_command_by_name tool
Find C4D commands (CallCommand-able plugin commands) matching a name substring.

    Use this to discover the integer command ID for things like 'Octane Area Light',
    'Redshift Sun', 'Alembic Export', etc. Once you have the ID, pass it to
    `create_via_command` to actually invoke it.

    Example: name_contains="area light" → returns ids for 'Light' (Octane Area), 'Area Light' (C4D), etc.
enumerate_octane_plugins tool
List all loaded Octane-related plugins (objects, commands, shaders, materials, tags, videoposts).

    Octane registers plugins across many types. This wraps `list_installed_plugins`
    with a name filter for 'octane' (and 'oct' for short-name variants). Pass
    `name_contains` to further narrow (e.g. 'image texture', 'area light',
    'directional').
dump_material_graph tool
Walk and dump the shader/node graph of a material (or any shader-bearing object/tag).

    Provide `material_name` to dump a specific material from the doc.GetMaterials() list,
    OR `object_name`/`guid` to dump shaders attached to that object (covers Octane Area
    Lights' emission-shader inputs, OctaneTag shader graphs on objects, etc.).

    Returns a tree of {name, type_id, guid, params, children}. Each node's params
    include the first ~30 description parameters with their current values — usually
    enough to identify what an Octane node does and where its inputs live.
create_via_command tool
Execute c4d.CallCommand(command_id) and return the new active object.

    Use this for plugin objects that can't be instantiated via BaseObject.Alloc() —
    notably Octane lights/cameras/postprocess, which require the CallCommand pattern.
    Example: command_id=1033864 creates an Octane Area Light.

    Pass `object_name` to rename the new object after creation.
link_shader_to_parameter tool
Create a shader, optionally configure it, and link it as the value of a parameter
    on a target object/material/light.

    Killer helper for any "create shader, configure, link to parameter" workflow.
    Once you've discovered the Octane Image Texture shader plugin ID and the Area
    Light's texture parameter ID (via enumerate_octane_plugins + enumerate_descids),
    call this with shader_params={"file": "/path/to/canvas.png", ...} to wire it up
    in one shot.

    Args:
        target_name / target_guid: the receiver (object, material, light)
        parameter_path (list[int]): explicit DescID path on target; OR
        parameter_name (str): substring match on parameter name (auto-resolves)
        shader_plugin_id: plugin ID of the shader to create (e.g. Octane ImageTexture)
        shader_params: dict of {param_id_or_name_substring: value} to set on the new shader
                       Examples:
                         {"file": "/tmp/x.png"}        — fuzzy match by name
                         {1003: "/tmp/x.png"}          — explicit param id
install_plugin tool
Copy a built C4D plugin (.xdl64 + res/) into Cinema 4D's plugin directory.

    SERVER-SIDE TOOL — works without a live C4D connection (file operation only).

    Args:
        source_dir: directory containing the built plugin. e.g.
                    `<sdk_root>/_build_v143/bin/Release/plugins/<PluginName>`.
                    Accepts WSL or Windows-native paths.
        install_dir: target directory. Defaults to env var C4D_PLUGINS_DIR if set,
                     otherwise `/mnt/c/Program Files/Maxon Cinema 4D 2026/plugins/<plugin_name>`.
        plugin_name: explicit plugin name. If omitted, derived from source_dir's basename.
        include_res: also copy the `res/` subdirectory (defaults True).
        overwrite: overwrite existing files in install_dir (defaults True).

    Returns a summary of files copied. **Note:** C4D must be restarted to load
    a freshly-installed compiled plugin — there's no hot-reload for .xdl64.
build_and_install_plugin tool
Build a C4D plugin via CMake and (optionally) deploy it to the C4D plugins folder.

    SERVER-SIDE TOOL — runs subprocess on the host. Wraps the standard C4D SDK
    workflow:
        cmake --build <build_dir> --config Release --target <target>
        cp <build_dir>/bin/Release/plugins/<target>/<target>.xdl64 <install_dir>/
        cp -r plugins/<target>/res <install_dir>/

    Args:
        target: CMake target name (e.g. plugin module name)
        sdk_root: path to the C4D SDK root containing CMakeLists.txt.
                  Defaults to env var C4D_SDK_ROOT if set, else cwd.
        config: "Release" (default) or "Debug"
        build_dir: name of the build directory under sdk_root (default "_build_v143")
        install_dir: where to deploy. Defaults to env var C4D_PLUGINS_DIR + target,
                     else `/mnt/c/Program Files/Maxon Cinema 4D 2026/plugins/<target>`.
        cmake_cmd: explicit cmake binary path. Defaults to trying "cmake.exe" then "cmake".
        deploy: if True (default), also copy the built artifacts to install_dir after build.

    Returns build log + install summary. Does NOT restart C4D.
get_primitives_info resource
Get information about available Cinema 4D primitives.
get_material_types resource
Get information about available Cinema 4D material types and their properties.
get_connection_status resource
Get the current connection status to Cinema 4D.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safety10.0
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure3.4
  • Runs programs the caller chooses
    1 finding the scanner could not decide; see the findings below
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 118 tool handlers traced
  • Reads or writes any file path HIGH
    3 findings in build_and_install_plugin, recipe_run, tap_octane_log
  • Requests any address
    No tool sends a request to an address the caller supplies — 118 tool handlers traced
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 118 tool handlers traced
  • Tools that start processes
    1 of 118 capabilities start processes; 115 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    3 of 118 capabilities touch files; 113 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    113 of 118 capabilities call the network; 3 more call code the scanner could not follow, where it may happen
Where the code is: 118 handlers in 1 file at commit 9622af7fa657
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain2.7
  • Dependency manifests
    1 manifest: pyproject.toml
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database; 2 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; setup.py: dependency ranges declared here were not resolved against a lockfile and were not checked
  • Known vulnerabilities in production dependencies CRITICAL
    7 production packages with known advisories
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    mcp >=1.2.0
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    112 of 118 capabilities read credentials; 4 more call code the scanner could not follow, where it may happen
  • Environment variables
    114 capabilities read environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (7 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

PackageInstalledWorstAdvisoriesFixed in
anyioPyPI 4.8.0 CRITICAL 4 advisories 4.14.2
  • CRITICALGHSA-82r6-8w77-94w6 CVE-2026-63374 PYSEC-2026-4025AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
  • MEDIUMGHSA-5p39-cfhj-2xmp CVE-2026-64847 PYSEC-2026-4024AnyIO process-pool workers can block indefinitely on undrained stderr
  • MEDIUMPYSEC-2026-4024 CVE-2026-64847 GHSA-5p39-cfhj-2xmpAnyIO process-pool workers can block indefinitely on undrained stderr
  • MEDIUMPYSEC-2026-4025 CVE-2026-63374 GHSA-82r6-8w77-94w6AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
certifiPyPI 2025.1.31 CRITICAL 2 advisories 2026.10.18
  • CRITICALGHSA-6q48-6c7w-9gw2 PYSEC-2026-4320certifi bundles emSign root CAs with compromised intermediate CA keys
  • MEDIUMPYSEC-2026-4320 GHSA-6q48-6c7w-9gw2certifi bundles emSign root CAs with compromised intermediate CA keys
h11PyPI 0.14.0 CRITICAL 2 advisories 0.16.0
  • CRITICALGHSA-vqfr-h8mv-ghfj CVE-2025-43859 PYSEC-2026-348h11 accepts some malformed Chunked-Encoding bodies
  • MEDIUMPYSEC-2026-348 CVE-2025-43859 GHSA-vqfr-h8mv-ghfjh11 accepts some malformed Chunked-Encoding bodies
starlettePyPI 0.46.1 HIGH 14 advisories 0.47.20.49.11.0.1+3 more
  • HIGHGHSA-82w8-qh3p-5jfq CVE-2026-54283 PYSEC-2026-249Starlette: request.form() limits silently ignored for application/x-www-form-urlencoded enable DoS
  • HIGHGHSA-7f5h-v6xp-fcq8 CVE-2025-62727 PYSEC-2026-1942Starlette vulnerable to O(n^2) DoS via Range header merging in ``starlette.responses.FileResponse``
  • HIGHGHSA-wqp7-x3pw-xc5r CVE-2026-48818 PYSEC-2026-2281Starlette: SSRF and NTLM credential theft via UNC paths in StaticFiles on Windows
  • MEDIUMPYSEC-2026-2280 CVE-2026-48817 GHSA-x746-7m8f-x49cStarlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and below, when dispatching a request, HTTPEndpoint selects the handler by lowercasing the HTTP method and looking it up as an attribute with getattr, without restricting the lookup to a known set of HTTP verbs. When an HTTPEndpoint subclass is registered through Route(...) without an explicit methods= argument, the route does not constrain the method and every method reaches the endpoint. If a non-standard HTTP method whose lowercased name matches an attribute on the endpoint subclass reaches the endpoint, that attribute is invoked as if it were a request handler. An attacker can use this to reach methods that were never meant to be HTTP handlers, such as internal helpers, without the authorization checks applied by the intended public handler. An application (including Starlette-based frameworks like FastAPI) is affected if it registers an HTTPEndpoint subclass via Route(...) without explicitly setting methods=, and that subclass includes extra methods named like non-standard HTTP verbs that take one request argument and return a response. This issue has been fixed in version 1.1.0.
  • MEDIUMGHSA-2c2j-9gv5-cj73 CVE-2025-54121 PYSEC-2026-1941Starlette has possible denial-of-service vector when parsing large files in multipart forms
  • MEDIUMGHSA-86qp-5c8j-p5mr CVE-2026-48710 PYSEC-2026-161 X41-2026-002Starlette has missing Host header validation that poisons request.url.path, bypassing path-based security checks
  • MEDIUMPYSEC-2026-2281 CVE-2026-48818 GHSA-wqp7-x3pw-xc5rStarlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and earlier, StaticFiles on Windows is vulnerable to SSRF. An UNC path such as \\\\attacker.com\\share can cause os.path.realpath to initiate an outbound SMB connection before the path is rejected, exposing the service account’s NTLMv2 credentials for offline cracking or relay even though the HTTP response is only a 404. The issue affects default follow_symlink=False deployments, including frameworks built on Starlette such as FastAPI; POSIX systems and follow_symlink=True are unaffected. The issue is fixed in 1.1.0.
  • MEDIUMGHSA-x746-7m8f-x49c CVE-2026-48817 PYSEC-2026-2280Starlette: Arbitrary HTTP method dispatched to `HTTPEndpoint` attributes via `getattr`
  • MEDIUMPYSEC-2026-249 CVE-2026-54283 GHSA-82w8-qh3p-5jfqStarlette is a lightweight ASGI framework/toolkit. From 0.4.1 until 1.3.1, request.form() accepts max_fields and max_part_size to bound resource consumption while parsing form data. These limits are enforced for multipart/form-data, but silently ignored for application/x-www-form-urlencoded. An unauthenticated attacker can therefore send a urlencoded body with an arbitrarily large number of fields or an arbitrarily large field, even when the application configured limits it believed would apply. This vulnerability is fixed in 1.3.1.
  • MEDIUMPYSEC-2026-1941 CVE-2025-54121 GHSA-2c2j-9gv5-cj73Starlette has possible denial-of-service vector when parsing large files in multipart forms
  • MEDIUMPYSEC-2026-161 CVE-2026-48710 GHSA-86qp-5c8j-p5mr X41-2026-002BadHost: Missing Host header validation poisons request.url.path, bypassing path-based security checks
  • MEDIUMPYSEC-2026-248 CVE-2026-54282 GHSA-jp82-jpqv-5vv3Starlette is a lightweight ASGI framework/toolkit. Prior to 1.3.0, the HTTP request path is not validated before being used to reconstruct request.url. Because request.url is rebuilt by concatenating {scheme}://{host}{path} and re-parsing the result, a path that does not begin with / (for example @google.com) moves the authority boundary during re-parsing, so request.url.hostname and request.url.netloc become attacker-controlled. Code that reads request.url.hostname (rather than the Host header or scope) can therefore be misled into trusting an attacker-supplied host. This vulnerability is fixed in 1.3.0.
  • MEDIUMPYSEC-2026-1942 CVE-2025-62727 GHSA-7f5h-v6xp-fcq8Starlette vulnerable to O(n^2) DoS via Range header merging in ``starlette.responses.FileResponse``
  • LOWGHSA-jp82-jpqv-5vv3 CVE-2026-54282 PYSEC-2026-248Starlette: Unvalidated request path concatenated into authority poisons request.url.hostname
mcpPyPI 1.4.0 HIGH 10 advisories 1.9.41.10.01.23.0+2 more
  • HIGHGHSA-j975-95f5-7wqh CVE-2025-53365 PYSEC-2026-1618MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
  • HIGHGHSA-vj7q-gjh5-988w CVE-2026-59950 PYSEC-2026-3483MCP Python SDK: WebSocket server transport does not support Host/Origin validation
  • HIGHGHSA-3qhf-m339-9g5v CVE-2025-53366 PYSEC-2026-1616MCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS
  • HIGHGHSA-9h52-p55h-vw2f CVE-2025-66416 PYSEC-2026-1617Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
  • HIGHGHSA-jpw9-pfvf-9f58 CVE-2026-52869 PYSEC-2026-3482MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
  • MEDIUMPYSEC-2026-1616 CVE-2025-53366 GHSA-3qhf-m339-9g5vMCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS
  • MEDIUMPYSEC-2026-1618 CVE-2025-53365 GHSA-j975-95f5-7wqhMCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
  • MEDIUMPYSEC-2026-3483 CVE-2026-59950 GHSA-vj7q-gjh5-988wMCP Python SDK: WebSocket server transport does not support Host/Origin validation
  • MEDIUMPYSEC-2026-3482 CVE-2026-52869 GHSA-jpw9-pfvf-9f58MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
  • MEDIUMPYSEC-2026-1617 CVE-2025-66416 GHSA-9h52-p55h-vw2fModel Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
idnaPyPI 3.10 MEDIUM 2 advisories 3.15
  • MEDIUMPYSEC-2026-215 CVE-2026-45409 GHSA-65pc-fj4g-8rjxInternationalized Domain Names in Applications (IDNA) for Python provides support for Internationalized Domain Names in Applications (IDNA) and Unicode IDNA Compatibility Processing. In versions prior to 3.15, payloads such as `"\\u0660" * N` or `"\\u30fb" * N + "\\u6f22"` utilize the `valid_contexto` function prior to length rejection, and for high values of `N` will take a long time to process. This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix. A specially crafted argument to the `idna.encode()` function could consume significant resources. This may lead to a denial-of-service. Starting in version 3.14, the function rejects long inputs as soon as practicable prior to any further processing to minimize resource consumption. In version 3.15, this approach was extended to lesser used alternate functions (i.e. per-label conversions and codec support). A workaround is available. Domain names cannot exceed 253 characters in length. If this length limit is enforced prior to passing the domain to the `idna.encode()` function, it should no longer consume significant resources. This is triggered by arbitrarily large inputs that would not occur in normal usage, but may be passed to the library assuming there is no preliminary input validation by the higher-level application.
  • MEDIUMGHSA-65pc-fj4g-8rjx CVE-2026-45409 PYSEC-2026-215Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix
python-dotenvPyPI 1.0.1 MEDIUM 2 advisories 1.2.2
  • MEDIUMGHSA-mf9w-mj56-hr94 CVE-2026-28684 PYSEC-2026-2270python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback
  • MEDIUMPYSEC-2026-2270 CVE-2026-28684 GHSA-mf9w-mj56-hr94python-dotenv reads key-value pairs from a .env file and can set them as environment variables. Prior to version 1.2.2, `set_key()` and `unset_key()` in python-dotenv follow symbolic links when rewriting `.env` files, allowing a local attacker to overwrite arbitrary files via a crafted symlink when a cross-device rename fallback is triggered. Users should upgrade to v.1.2.2 or, as a workaround, apply the patch manually.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDKmcp >=1.2.0
Servers in the code1 (Cinema4D)

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-08
Signed releasesnot checked yet

Where it is published

Listed in1 catalog (github_search)
LicenseMIT
Created2026-04-29
Topicsc4d-2026 cinema-4d claude mcp octane scene-nodes

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.