get_code_template
Return a ready-to-adapt IEC 61131-3 template for common automation patterns, so you can start with the structure and add your specific PLC logic.
Instructions
Returns a ready-to-adapt IEC 61131-3 code template for a common automation pattern. Use this as the structural starting point, then fill in the user-specific logic.
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": {
"pattern": "<pattern>"
},
"name": "get_code_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Automation pattern slug | |
| language | No | IEC 61131-3 language | ST |