Implementation:8beeeaaat Touchdesigner mcp get node detail
| Knowledge Sources | |
|---|---|
| Domains | Node_Graph, Introspection |
| Last Updated | 2026-10-28 22:13 GMT |
Overview
Concrete tool for reading a single TouchDesigner node's full state — identity metadata and all evaluated parameters — from the live node graph.
Description
The get_node_detail method on `TouchDesignerApiService` resolves a node by its absolute path via `td.op(node_path)`, validates it, and returns a full node summary with evaluated parameters. It is the single-node counterpart to `get_nodes` and the inspection step in the node error investigation workflow.
Usage
Call this method when you need to:
- Inspect a node's parameters before or after applying a fix.
- Read the full evaluated state of a single node for debugging.
- Verify a node exists and read its type/identity.
This method is exposed as the `get_td_node_parameters` MCP tool.
Code Reference
Source Location
- Repository: touchdesigner-mcp
- File: td/modules/mcp/services/api_service.py
- Lines: L160-169 (public method); helper `_get_node_summary` at L691-707, `_get_node_properties` at L657-671
Signature
class TouchDesignerApiService:
def get_node_detail(self, node_path: str) -> Result:
"""Get node at the specified path.
Args:
node_path: Absolute TD operator path (e.g. /project1/text1).
Returns:
Result: success_result with {id, name, path, opType, properties{}},
or error_result if node not found.
"""
Import
from mcp.services.api_service import TouchDesignerApiService
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| node_path | str | Yes | Absolute TD operator path (e.g. `/project1/text1`) |
Outputs
| Name | Type | Description |
|---|---|---|
| id | int | Node ID |
| name | str | Node display name |
| path | str | Full node path |
| opType | str | Operator type (e.g. `textTOP`) |
| properties | dict | All evaluated parameters (name → evaluated value; OP refs → path strings) |
Usage Examples
Inspect a Node's Parameters
from mcp.services.api_service import TouchDesignerApiService
service = TouchDesignerApiService()
result = service.get_node_detail("/project1/text1")
if result["success"]:
node = result["data"]
print(f"Node: {node['name']} ({node['opType']})")
for name, value in node["properties"].items():
print(f" {name} = {value}")
else:
print(f"Node not found: {result['error']}")
Verify Node Exists
result = service.get_node_detail("/project1/container1/my_node")
if result["success"]:
print(f"Confirmed: {result['data']['path']} is a {result['data']['opType']}")