edit_dialog_node
Edits an existing dialog node's text, script, sound, or comment in Neverwinter Nights .mod files, changing only the fields you provide.
Instructions
Edit an existing dialog node's text, script, sound, or comment. Supports partial updates — only provided fields are changed. Note: conditions live on links (Active field), not nodes — use modify_gff_field for those.
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": {
"dialog": "<dialog>",
"nodeType": "<nodeType>",
"nodeIndex": "<nodeIndex>"
},
"name": "edit_dialog_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | New dialog text | |
| sound | No | New sound resref | |
| dialog | Yes | Dialog resref | |
| script | No | New action script resref (runs when node plays) | |
| comment | No | New builder comment | |
| nodeType | Yes | Node type: 'entry' (NPC line) or 'reply' (PC line) | |
| nodeIndex | Yes | Index of the node in EntryList or ReplyList |