load_model_from_content
Load an ArchiMate model by providing XML content, replacing the active model. Supports ArchiMate, Archi, or 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_content": "<model_content>"
},
"name": "load_model_from_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_content | Yes | ||
| content_format | No | archimate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||