dimension_run
Execute custom JavaScript inside Adobe Dimension to control scenes, materials, cameras, and actions when built-in tools lack coverage; supports async/await and returning results.
Instructions
Run JavaScript inside Dimension for anything the other tools do not cover (full control). async/await is allowed; return a value to see it. Helpers on window.__dmcp (alias d): d.app (all controllers: sceneGraphController, materialController, cameraController, lightSetController, environmentController, renderController, documentController, matchImageController, assetController, ...), d.dispatch(ACTION_TYPE, data), d.actionTypes(filter), d.methodsOf(obj), d.controllers(), d.tree(), d.findItem(pathOrLabel), d.select(paths), d.cache().fetch(nodePath) (node.properties[name].getValue/setValue), d.materialModel(path), d.setNodeProperty(path, name, value), d.sleep(ms), d.toJSON(x). Use dimension_source to learn how a feature is implemented before calling it.
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": {
"code": "<code>"
},
"name": "dimension_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout_ms | No |