plc_create_variable
Stages a new variable declaration in an existing global or local VAR group and rejects case-insensitive name collisions before the change is applied.
Instructions
Stage a declaration in an existing global or local VAR group. Case-insensitive collisions are rejected.
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": {
"transaction_id": "<transaction_id>",
"table_id": "<table_id>",
"name": "<name>",
"data_type": "<data_type>",
"expected_revision": "<expected_revision>"
},
"name": "plc_create_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| table_id | Yes | ||
| data_type | Yes | ||
| initial_value | No | ||
| transaction_id | Yes | ||
| expected_revision | Yes | Project revision read before staging this change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||