ads_leaves
Enumerate every scalar leaf under a PLC symbol with byte offsets. Optionally decode values from symbol bytes, noting missing or partial values.
Instructions
Enumerate every scalar leaf under a symbol with byte offsets (datatype table): 'MAIN' → all program variables, 'MAIN.arrSteps' → arrSteps[1].nId … With values=true each leaf is decoded from the symbol's bytes, read in bounded pieces (a value that is not expanded: its head only); value_note says why a value is missing or partial.
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": {
"name": "<name>"
},
"name": "ads_leaves"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| max_leaves | No | ||
| with_values | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||