create_section
Create a new empty program section within an existing task, specifying the IEC language (ST, LD, FBD, SFC, IL, LL984) to prepare for logic insertion.
Instructions
Create a new empty program section in a task.
language: ST, LD, FBD, SFC, IL or LL984. To fill it with logic:
ST: call write_st_logic (plain IEC text, no XML) — easiest.
LD / FBD / SFC: FIRST call get_language_reference(language) to get the validated exchange-XML rules and a worked example, then author the section XML and import it with import_xml(kind='section'). SFC suits stepwise sequences.
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": {
"task": "<task>",
"name": "<name>"
},
"name": "create_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| task | Yes | ||
| language | No | ST |