gx3_xref_where_used
Trace every reference to a device in a MELSEC GX3 project, including POU name, real step, and device comment. Build the xref database first with 'gx3-cli xref build'.
Instructions
Writers and readers of a device with POU name and real step. The first line carries the device comment; repeat it alongside the device in your answer instead of reporting a bare device number. Requires the xref DB: run gx3-cli xref build --root <root> once per project first.
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": {
"device": "<device>",
"root": "<root>"
},
"name": "gx3_xref_where_used"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Extracted project folder. | |
| device | Yes | Device to look up. |