build_remoteconnect_logic_copy
Edit ST logic safely by building a copy and saving only if build succeeds, avoiding source corruption.
Instructions
Safely edit ST logic and save only after a clean build, always to a copy.
source_path may be any member of a RemoteConnect bundle; its paired logic file is opened without saving in place. output_path must be a new .STU path unless overwrite=true. variables is an optional list of dictionaries with name/type and optional comment/address/initial_value. declare contains section-local or FB declarations. On edit/build failure the application is closed without saving and output_path is not written.
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": {
"source_path": "<source_path>",
"output_path": "<output_path>",
"task": "<task>",
"section": "<section>",
"st_source": "<st_source>"
},
"name": "build_remoteconnect_logic_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| declare | No | ||
| section | Yes | ||
| overwrite | No | ||
| st_source | Yes | ||
| variables | No | ||
| output_path | Yes | ||
| source_path | Yes |