MCPcopy Create free account
hub / github.com/capoomgit/houdini-mcp / set_wrangle_code

Method set_wrangle_code

server.py:838–848  ·  view source on GitHub ↗

Replace the VEX snippet on an existing wrangle and re-validate.

(self, path, vex_code, validate=True)

Source from the content-addressed store, hash-verified

836 }
837
838 def set_wrangle_code(self, path, vex_code, validate=True):
839 """Replace the VEX snippet on an existing wrangle and re-validate."""
840 node = self._resolve_node(path)
841 snippet = node.parm("snippet")
842 if snippet is None:
843 raise ValueError(f"{path} has no 'snippet' parameter (not a wrangle)")
844 snippet.set(vex_code)
845 result = {"path": node.path(), "code_length": len(vex_code)}
846 if validate:
847 result["validation"] = self._cook_and_report(node)
848 return result
849
850 # -------------------------------------------------------------------------
851 # Geometry Introspection

Callers

nothing calls this directly

Calls 2

_resolve_nodeMethod · 0.95
_cook_and_reportMethod · 0.95

Tested by

no test coverage detected