codesys_engineering
Runs official CODESYS engineering actions through a private script process to inspect, edit, compile, and save .project files; batch steps stop on first failure.
Instructions
Official CODESYS engineering through the ScriptEngine, spawn-only. Launches a private CODESYS.exe --runscript process, edits the given .project file, and exits. Without save=true nothing is written to disk. No attach mode, no plugin, no online/PLC access. Requires CODESYS_EXE and CODESYS_PROFILE environment variables; run "node tools/check-config.mjs" to validate them. create_empty creates a new empty .project container (no controller). batch runs 1..200 steps and stops on the first failure. Close other CODESYS instances first, or pass isolated=true for a separate user profile.
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": {
"action": "<action>",
"project": "<project>"
},
"name": "codesys_engineering"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | ||
| action | Yes | ||
| project | Yes | Absolute path to a .project file. | |
| isolated | No |