Get Current TIA Block
tia_get_current_blockRetrieves details of the block currently selected or open in TIA Portal from a live project or exact export, including attributes, interface, body, and references.
Instructions
Details of the block currently selected/open in TIA Portal. source=live (default) reads it from the exact running V20 project: official attributes, cross references and, from one temporary block export, interface and program body; nothing is persisted. source=export resolves it through an exactly matching existing export instead: offline metadata, call relations, interface members and existing non-stale reference results; never creates or refreshes an export.
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_get_current_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | export only: call relations returned, default 100. | |
| roots | No | export only: bounded export roots to search. | |
| source | No | live | |
| exportDir | No | export only: disambiguates several exact snapshots. | |
| processId | No | ||
| timeoutMs | No | Default 20000 (live) or 10000 (export, at most 30000). | |
| maxResults | No | live only: cross references returned, default 500. | |
| includeRawXml | No | live only; needs includeProgramBody. | |
| interfaceLimit | No | Interface members returned; default 1000 (live) or 500 (export, at most 2000). | |
| includeInterface | No | Default true. | |
| bodyEvidenceLimit | No | live only; default 1000. | |
| includeProgramBody | No | live only; default true. | |
| includeCrossReferences | No | live only; default true. | |
| includeExistingReferences | No | export only; default true. |