xae_links_import
Preview and apply a TwinCAT variable-link mapping table via ConsumeMappingInfo, adding or replacing all project links, with dry-run diff, backup, and restore guidance.
Instructions
Import a mapping table (, as ProduceMappingInfo writes it) through ConsumeMappingInfo, which replaces ALL links of the project. mode='add': its links are added to the table as it is (nothing removed); 'replace': it is the whole new table. dry_run (default): what would be added / removed / changed — nothing done; its confirm_target is the token target the apply needs. dry_run=false: the table as it is goes to a new backup file first (~/.twincat_mcp/backups/links/), then ConsumeMappingInfo once, then the table is read again and compared; a failure says what the table holds then and how to restore it. xml text or file (on this PC, UTF-8 or UTF-16). Refused while the table has a link with a TwinSAFE end (ConsumeMappingInfo rewrites every link). Destructive-class: tc_request_confirmation(action='xae_links_import', args={xml|file, mode}) — the target is the dry run's confirm_target, ': over (+ -)' (a table changed since: refused).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | ||
| file | No | ||
| mode | No | add | |
| dry_run | No | ||
| confirm_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||