insert_rung_structured
Insert a ladder logic rung from a structured boolean expression into a CX-Programmer project. Place it at a specified rung index within a program section using provided outputs and comment.
Instructions
Insert a rung compiled from a structured boolean expression.
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": {
"project_id": "<project_id>",
"program_name": "<program_name>",
"section_name": "<section_name>",
"rung_index": "<rung_index>",
"expression": "<expression>",
"outputs": "<outputs>"
},
"name": "insert_rung_structured"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| outputs | Yes | ||
| expression | Yes | ||
| project_id | Yes | ||
| rung_index | Yes | ||
| program_name | Yes | ||
| section_name | Yes | ||
| expected_revision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||