load_model_from_content
Load an ArchiMate model directly from XML content, replacing the current active model. Supports ArchiMate, Archi, and generic XML formats.
Instructions
Load an ArchiMate model from XML string content (replaces active model).
For loading large files or paths use `load_model_from_file` instead;
this tool expects the actual XML payload, not a path.
Args:
model_content: XML content. Must start with `<` and be 10 MiB or
smaller. DTD and entity declarations are rejected for safety.
content_format: One of `archimate` (Open Group exchange XML,
default), `archi` (Archi native `.archimate` XML), or `xml`.
Returns:
Success envelope with `data.model_info` describing the loaded
model (see `pyarchimate://activemodel/info`).
Errors:
`INVALID_MODEL_CONTENT` when `model_content` is not XML.
`UnsupportedFormatError` when `content_format` is not recognized.
`ModelOperationError` when pyArchimate fails to parse the XML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_content | Yes | ||
| content_format | No | archimate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||