get_tag
Retrieve a variable's declaration and all references across POUs, nets, and lines to trace what drives a signal.
Instructions
Get one variable's full detail plus every place it is used.
Use this to answer "what is this signal and what drives it?" — it returns the declaration (with address and comment) alongside every POU, net and line that references it.
Args: path: Project file or directory. tag_name: Variable name. A qualified name such as "Products.Sensor.Bit" also works.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| tag_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |