Set Node Graph Port Value
set_graph_portSet a single port value on a node by its stable $id within a material graph. Accepts booleans, numbers, strings, and 3-number vectors.
Instructions
Update a single port on a node addressable by its stable $id within a node material graph. Thin convenience over apply_graph_description: internally builds a {$query:{$id:node_id}, port: value} payload. Lists of 3 numbers are coerced to maxon.Vector for vector-typed ports.
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": {
"node_id": "<node_id>",
"port": "<port>",
"value": "<value>"
},
"name": "set_graph_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port path, e.g. 'Base/Metalness' or 'Image/Custom Gamma'. | |
| scope | No | Target the scene-nodes graph on the active document. | |
| value | Yes | New port value. [x,y,z] is passed as maxon.Vector. | |
| handle | No | Material handle. Required unless `scope:'document'`. | |
| node_id | Yes | The $id assigned to the target node. | |
| node_space | No | Alias 'standard' | 'redshift' | 'scenenodes' or maxon.Id. Default 'standard'. |