proj_validate_xml
Validate TwinCAT project XML files (.TcPOU/.TcDUT/.TcGVL) for structural errors, GUID uniqueness, LineIds mismatches, and EOF newlines. Apply safe fixes with .bak backups or regenerate LineIds blocks.
Instructions
Structural validation of .TcPOU/.TcDUT/.TcGVL files: XML well-formedness, Name/Id, GUID format + project-wide uniqueness, Declaration/Implementation presence, property accessor VAR blocks, LineIds vs implementation line counts, EOF newline. fix=true applies safe fixes (.bak written); regenerate_lineids rebuilds LineIds blocks.
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": "proj_validate_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | ||
| name | No | ||
| regenerate_lineids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||