Read TIA Block
tia_read_blockRead a single exported TIA Portal block, DB, UDT, or tag table as compact text, raw XML, interface, or context to inspect logic, members, and call relationships.
Instructions
Read one exported block, DB, UDT or tag table. Give exportDir with name/number/relativePath; view=text also accepts xmlPath for a single Simatic ML file such as an import candidate. Views: text (default) is compact text, the interface then one line per coil, assignment, instruction box or block call in each network (LAD/FBD), or the SCL source, with every instruction box shown including GET/PUT/MOVE; xml is the raw exported XML, only needed to prepare an import; interface is the flattened interface/member table; context is the metadata, direct callers, direct callees and same-number companion objects.
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_read_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| view | No | text | |
| limit | No | interface members (default 500) or context relations (default 100, at most 300). | |
| number | No | ||
| xmlPath | No | view=text only: a single Simatic ML file instead of an indexed block. | |
| maxChars | No | Default 40000 (text) or 60000 (xml). | |
| networks | No | text: only these network numbers. | |
| exportDir | No | ||
| relativePath | No | ||
| includeComments | No | text; default true. | |
| includeInterface | No | text; default true. |