get_model_xml
Retrieve the XMILE XML representation of a Stella model for preview. Use a model ID to target a specific model in the session.
Instructions
Get the XMILE XML representation of the current model (for preview)
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": "get_model_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | No | Session-scoped model ID. Optional; defaults to the current model for this session. | |
| auto_layout | No | Whether to auto-layout before export | |
| compat_mode | No | Compatibility mode for export checks | permissive |
| workspace_id | No | Opaque application workspace handle. Required by MCP 2026-07-28 clients; supported legacy stdio clients may omit it to use the process-local compatibility workspace. | |
| resolve_layout_violations | No | Whether to run layout crossing/collision post-processing before export |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | ||
| layout | Yes | ||
| model_id | Yes | ||
| truncated | Yes | ||
| compatibility_warnings | Yes |