search_logic
Search an L5X project for a tag, AOI, or regex pattern across all routines to find every rung or line that references it. Use it to trace where a PLC tag or AOI is used.
Instructions
Search for a tag, AOI, or pattern across all routines in an L5X project.
Returns every routine/rung/line that references the matching symbol(s). Supports regex patterns. Use this to answer "Where is this tag used?" or "Which routines reference this AOI?"
Args: l5x_path: Path to a .l5x file. pattern: Tag name, AOI name, or regex pattern to search for.
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": {
"l5x_path": "<l5x_path>",
"pattern": "<pattern>"
},
"name": "search_logic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| l5x_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |