upsert_symbol
Create or update global/local program symbols without modifying PLC setup or I/O tables. Ideal for adding or changing symbol addresses, names, data types, comments, and scope directly in the project.
Instructions
Create or update a global/local program symbol without touching PLC setup or I/O tables.
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>",
"address": "<address>"
},
"name": "upsert_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| scope | No | global | |
| address | Yes | ||
| comment | No | ||
| data_type | No | BOOL | |
| project_id | Yes | ||
| program_name | No | ||
| expected_revision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||