/blender:hostfrom blender
Use when driving Blender or reading bpy members from the installed build, covering host control and installed-extension workflows
Ships in blender. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Covers MCP-driven GUI sessions, background runs, extension installs, logs, and evaluation runs of the blender executable on PATH, with workflows installed extensions serve. Use blender:coding for code a session or run executes.
[REFERENCES]:
Server blender reaches the GUI through extension bl_ext.blender_lab.mcp on port 9877 and holds every tool not marked on mcp-for-blender, and server mcp-for-blender through add-on blender_mcp on port 9876:
| [INDEX] | [TOOL] | [USE_WHEN] |
|---|---|---|
| [01] | get_blendfile_summary_path_info | "Which file is open?" / "Does it hold unsaved changes?" |
| [02] | get_blendfile_summary_datablocks | "How many data-blocks of each type does the file hold?" |
| [03] | get_blendfile_summary_missing_files | "Which external files fail to resolve?" |
| [04] | get_blendfile_summary_of_linked_libraries | "Which libraries does the file link?" |
| [05] | get_objects_summary | "What does the collection tree hold?" |
| [06] | get_object_detail_summary | "What modifiers, constraints, and materials does it hold?" |
| [07] | get_screenshot_of_window_as_json | "Which areas, mode, and selection does the main window show?" |
| [08] | get_screenshot_of_window_as_image | "Is a popup, prompt, or splash screen open?" |
| [09] | get_screenshot_of_area_as_image | "What does this one editor show?" |
| [10] | look on mcp-for-blender | "What do these objects look like now?" |
| [11] | jump_to_tab_by_name | "Show the user this workspace" |
| [12] | jump_to_tab_by_space_type | "Show the user this editor" |
| [13] | jump_to_view3d_object_by_name | "Frame this object in the viewport" |
| [14] | search_manual_docs | "How does this feature or workflow work?" |
| [15] | execute_blender_code | "Read or edit live state no other tool covers" |
| [16] | get_addon_status on mcp-for-blender | "Which asset and model sources are on?" |
| [17] | search_assets on mcp-for-blender | "Find an HDRI, texture, or model in an online library" |
| [18] | import_asset on mcp-for-blender | "Bring a found asset into the scene" |
| [19] | generate_3d on mcp-for-blender | "Generate a model from a prompt or image" |
Pictures come from the source that draws current state:
look draws offscreen at call time with target naming objects, else frames every object, a ground plane includedlook mode frames frames target at its current-frame position, and view camera on a camera covering the path reads motionlooknodes, links, interface.items_tree)jump_to_view3d_object_by_name sets Object Mode, replaces selection and active object, and leaves camera viewregion_3d.view_location and view_distance on a 3D view frames an object with selection and mode keptSessions open in order:
lsof -a -nP -iTCP:9876-9877 -sTCP:LISTEN names the GUI pid--python-use-system-envget_blendfile_summary_path_info names the open file and its is_dirty stateget_addon_status on mcp-for-blender answers "source": "native", or "error" while replacing a quit GUI's socket, native on its next callbpy.ops.wm.read_homefile(), after bpy.ops.wm.save_mainfile() for a named fileblender --background <file.blend> --command blender_mcp --port 9877 run in the background serves the file to server blenderQuitting saves preferences, the last GUI to quit overwriting what others saved. Restore preferences a task GUI changed before quitting it. Blender draws menus and dialogs inside its windows, its Accessibility menu bar holding the Blender and Window menus alone. Quitting an edited file raises a save prompt only a window capture shows, and bpy.ops.wm.read_homefile() before the quit discards a task GUI's edits.
Script-driven task GUIs run a runner script:
BLENDER_USER_RESOURCES=<folder> TMPDIR=<folder> blender --no-window-focus --python-use-system-env --python <runner.py> runs one on a fresh profile without focus and returns its exit status once it quitsbpy.app.timers function that runs one step per call, modal jobs and drawing advancing between steps--enable-event-simulate enables window.event_simulate and discards real keyboard and mouse input, the call otherwise raising RuntimeErrorbpy.ops.wm.quit_blender() under a temp_override naming the first windowUser startup files replace factory values, and sessions read each listed member before relying on one:
scene.unit_settings (system, length_unit, scale_length) sets the display unit over data in metershide_select on) join every new fileview_settings.exposure near -5) renders render.opengl and Workbench near black, Cycles and EEVEE daylightwm.read_homefile() keep session workspaces and screens and wm.open_mainfile() repeat the previous load's load_uiexecute_blender_code runs Python inside the GUI process:
result = {} alone, code imports bpy and every module it usesresult returns a dict of names, numbers, and lists, IDs and mathutils values returning as their reprwindow and screen and leaves area and region Nonetemp_override naming themis_dirty as it wasstdout and an ERROR report's traceback in messagewarnings.catch_warnings(record=True) with simplefilter("always")RUNNING_MODAL (invoked tools, timer-driven jobs) run on after the call, and later calls read progress from their dataexecute finish as FINISHED to window manager, the call raising RuntimeErrorWindow reads name what Blender shows before a call that depends on it:
get_screenshot_of_window_as_json excludes popupsbpy.context.window_manager.windows lists each window's areas and modal_operators| [INDEX] | [STATE] | [READS_AS] | [RESOLUTION] |
|---|---|---|---|
| [01] | File browser | Window with one FILE_BROWSER area, opener modal | file.cancel() under its window, area, and region |
| [02] | Running tool | modal_operators non-empty | Complete or cancel through UI |
| [03] | Prompt or popup | Window image | Read dialog and select action |
| [04] | Running job | window_manager.is_interface_locked true | Data writes after it reads false |
Arguments apply left to right, --python-exit-code and the .blend before --python, and -o, -F, -E before -f:
blender --python-use-system-env --background <file.blend> -o <absolute path> -E <engine> --python-exit-code 1 --python <absolute script.py> -- <args>
Background runs follow host rules:
blender on the user's profile, every other run on a fresh profile ([09])--python-exit-code, and sys.exit(<n>) exits <n>bpy.app.timers and msgbus callbacks never runRUNNING_MODAL without stepping, and invoke-only operators return PASS_THROUGHload_post reaches an extension at startup when preferences enable it, or when a .blend argument follows --addonsbpy.ops.ed.undo_push() creates an undo stackrender.opengl raises RuntimeErrorwm.read_homefile(use_empty=True) empties the scene and keeps loaded extensionsBackground renders use named files saved in place, untitled and scratch scenes render in GUI without saving:
bpy.ops.wm.save_mainfile() in the GUIblender --background <file.blend> -o <absolute dir>/<stem>_#### -f <frame> as a background command logs Saved: '<path>'Member, signature, enum, and operator property facts come from the installed build, each printed by blender --background --factory-startup --python-expr "import bpy; print(<expr>)", extension members by the same run without --factory-startup:
<Type>.bl_rna.properties["<name>"] reads type, fixed_type, is_readonly, enum_items, and array_dimensions<Type>.bl_rna.functions["<name>"].parameters lists a method's parameters, bpy.ops.<module>.<op>.get_rna_type().properties an operator's<function>.__doc__ prints the signature of a Python-level function (bpy.app.timers.register, bpy.utils.*)Searches find code using a member:
rg <member> <scripts> finds stock code, bpy.utils.system_resource("SCRIPTS") printing <scripts>rg over ~/Library/Application Support/Blender/<version>/extensions and scripts/addons finds extension codeblender --command extension build --source-dir <source> --output-dir <dir> --split-platforms writes one archive per platform the manifest lists, and blender --command extension install-file --repo user_default --enable <archive> installs the one for this platform.
Repository user_default holds extensions installed from a file, remote repositories the rest:
install-file over an installed extension replaces its folder and modules whatever the archive versionblender --command extension remove user_default.<id> uninstalls with no GUI runninginstall-file exits 0 on install and on a platform or version refusal, and 1 on a failed --enableinstall-file output's STATUS Installed "<id>", STATUS Reinstalled "<id>", or ERROR <id>: <reason> line states the resultinstall and install-file save preferences an enable or asset library changed, and remove, repo-add, and repo-remove always save--no-prefs skips preference saves for a command that changes extension files and leaves the enabled set as foundimportlib.import_module("bl_ext.<repository>.<id>.<module>")sverchok, vi_suite, BlenderGIS) by package nameEach source writes its log to one place:
| [INDEX] | [SOURCE] | [OUTPUT] |
|---|---|---|
| [01] | Background run | Calling shell |
| [02] | Task GUI | execute_blender_code answers, Info editor lines in window_manager.reports |
| [03] | Extension logger | logs/<extension id>.log, logs/<command id>.log per background command, under extension_path_user |
| [04] | Queue run | runs/<key>.log under extension_path_user, output of render and farm programs as JSON records |
Log reads follow host rules:
PYTHONUNBUFFERED) under --python-use-system-env alone, prints reaching the log per line--log "<categories>" selects log categories, and --log-level trace prints every level--log-level trace --log "context" prints each context member an operator read, tagged with the calling script line--log operator --log-level debug --log-file <file> logs operator calls, rg -o 'Finished (bpy\.ops\..*)' -r '$1' <file> printing each runnableCannot connect to Blender answers mean no GUI listens on the answering server's portBlender resolves user folders through BLENDER_USER_CONFIG|SCRIPTS|EXTENSIONS|DATAFILES, then BLENDER_USER_RESOURCES naming an existing base folder; unresolved lookups have no profile fallback. A fresh profile is an empty folder those variables name:
folder=$(mktemp -d) && BLENDER_USER_RESOURCES=$folder TMPDIR=$folder blender --python-use-system-env <arguments> runs Blender on an empty profile and prints its output--python-use-system-env before other arguments reads PYTHONUSERBASE from the processWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/codingUse when writing or reviewing Python that runs inside Blender, covering bpy code from data references to host boundaries/debuggingUse when Python or native code inside Blender gives a wrong value, raises, hangs, crashes, or never stops at a breakpoint, covering debug endpoints, stops by code kind, extension reloads, stack dumps, crash reports, native frames, and GPU captures/extensionsUse when writing or reviewing a Blender extension's registration, preferences, or manifest, covering lifecycle and packagingnpx claudepluginhub bsamiee/rasm --plugin blender