origin_layer_add
Add a layer to a graph and return its actual index for later operations. Knowing the exact index prevents incorrect assumptions when a graph already has multiple layers.
Instructions
Add a layer (a panel) to a graph, and report which index it got.
Returns the new layer's index because every other operation takes one, and assuming the new layer is 1 is wrong the moment the graph already had two.
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": {
"graph": "<graph>"
},
"name": "origin_layer_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||