Generate NodeSet2 XML
opcua_model_generateGenerate OPC UA NodeSet2.xml and the symbols CSV from a YAML model. Requires an API key (set OPCUA_MODELER_API_KEY env var). NodeIds stay stable only if each regeneration passes back the symbols of the previous one: pass symbols_csv, or mode "new" for a first generation, or mode "renumber" to change ids on purpose. A call with none of these is refused with SYMBOLS_DECISION_REQUIRED. Returns base64-encoded artifacts if the model is valid. The result lists symbol counts (reused/new/dropped), hints and next steps.
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": {
"yaml": "<yaml>"
},
"name": "opcua_model_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "new": first generation, no symbols yet. "update": regeneration, symbols required. "renumber": allocate new NodeIds on purpose. Omit when passing symbols. | |
| yaml | Yes | The full YAML model source to generate from | |
| symbols_csv | No | The symbols CSV of the previous generation (the content of <name>.model.symbols.csv, or the base64 symbols_csv a previous call returned). Keeps NodeIds stable. | |
| include_docs | No | Set to true to include markdown documentation (slower) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| files | No | ||
| hints | Yes | ||
| valid | Yes | ||
| symbols | Yes | ||
| artifacts | No | ||
| next_steps | Yes | ||
| diagnostics | Yes | ||
| symbols_source | Yes |