Query Current TIA Project Objects
tia_query_live_projectResolve blocks, PLC data types, tag tables or PLC tags in the running TIA V20 project, returning attributes, cross-reference evidence and block interface or program body.
Instructions
Resolve blocks, PLC data types/UDTs, tag tables or PLC tags in the exact running TIA V20 project through the resident session (attached automatically when Portal is visible). One object: give resourceKind and name; returns direct official attributes, optional CrossReferenceService evidence and, for a block, interface and program body from one temporary XML. Several objects: give queries (up to 50) for a shallower result per object in one call; cross references default off there.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tia_query_live_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| number | No | ||
| queries | No | Batch form; replaces the single-object fields. | |
| blockKind | No | ||
| namespace | No | ||
| processId | No | Exact Portal PID; skips the UI observation. | |
| timeoutMs | No | Default 20000 for one object (at most 60000), 30000 for queries. | |
| maxResults | No | Per object. Default 500 (one object) or 200 (queries, at most 1000). | |
| maxXmlBytes | No | ||
| resourceKind | No | ||
| softwarePath | No | ||
| tagTableName | No | ||
| includeRawXml | No | One block only; needs includeProgramBody. | |
| interfaceLimit | No | One object: interface members returned, default 1000. | |
| includeInterface | No | One object only; default true. | |
| refreshInventory | No | ||
| bodyEvidenceLimit | No | Program-body evidence rows, default 1000 (queries: 200, at most 1000). | |
| includeProgramBody | No | Default false. | |
| officialIdentifier | No | ||
| includeCrossReferences | No | Default true for one object, false for queries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| status | Yes | ||
| completeness | No | ||
| requestedActionCompleted | No |