Expose subgraph parameter
subgraph_expose_paramExpose an inner node parameter on a subgraph node so it can be adjusted from outside the subgraph.
Instructions
Shows a parameter of a node inside a subgraph on the subgraph node itself, so it can be tweaked from outside.
To build a subgraph: node_add('Subgraph'), then node_add and link_add with graph=<subgraph id> to add a
Node_Input (its label becomes an input pin name), the inner nodes and a Node_Output (its label becomes an
output pin name). Writes the project file in place.
Returns: id of the exposed parameter, node_id, param_name and label.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": {
"path": "<path>",
"subgraph": "<subgraph>",
"inner_node": "<inner_node>",
"param": "<param>"
},
"name": "subgraph_expose_param"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the .illugen project file. | |
| graph | No | Graph to work in: empty for the top-level graph, or the id or label of a Node_Subgraph node ('outer/inner' for nested subgraphs). | |
| label | No | Name shown on the subgraph node. Empty = the parameter name. | |
| param | Yes | Parameter name on the inner node (see describe_node_type). | |
| subgraph | Yes | Id or unique label of the Node_Subgraph node. | |
| inner_node | Yes | Id or unique label of the node inside the subgraph. |