create_dialog
Generate a new DLG conversation file from a simplified tree of alternating NPC and PC lines, requiring NPC lines at the root.
Instructions
Create a new DLG conversation file from a simplified tree structure. Root nodes must be NPC lines (speaker: 'npc'). The tree alternates NPC→PC→NPC.
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": {
"resref": "<resref>",
"nodes": "<nodes>"
},
"name": "create_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | JSON array of dialog tree nodes: [{ speaker: 'npc'|'pc', text: string, script?: string, condition?: string, children?: [...] }] | |
| resref | Yes | Dialog filename without extension |