Scaffold tool generator
scaffold_tool_generatorScaffolds a new tdmcp tool file and its offline unit test from a one-line idea, returning the integration hint to wire it in without rework.
Instructions
Meta DX tool: scaffolds a new tdmcp tool file (xSchema + xImpl + registerX) and a matching offline msw unit test from a one-line idea. Returns the exact integration-hint (import line + array entry + layer index path) so the integrator can wire it without re-deciding shape. No TouchDesigner bridge call — pure local filesystem generator.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"description": "<description>"
},
"name": "scaffold_tool_generator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | snake_case tool name, e.g. 'create_smoke_field' | |
| layer | No | Destination layer directory under src/tools/ | layer2 |
| surface | No | Scaffold template variant | bridge |
| overwrite | No | Overwrite existing file if true | |
| repo_root | No | Repo root (default: process.cwd()); for tests use a tmpdir | |
| description | Yes | One-line MCP tool description |