Replace the GM journal
dos2_put_journalReplaces a campaign's entire Game Master journal—categories, chapters, and paragraphs—with the structure you provide. Read the current journal first, then send back your edits.
Instructions
Replaces the campaign's whole Game Master journal (categories, chapters, paragraphs) with the structure you pass. Entries that are not in categories are removed, so read the current journal with dos2_campaign first and send it back with your changes.
Writes Journal.lsf. The previous file is backed up first; undo with dos2_restore. Fails with an error while the game process is running unless allow_running=true.
The shared flag was not verified against Larian's samples; the GM can also share entries in the game. Returns
the backup id and the journal as it now reads.
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": {
"campaign": "<campaign>",
"categories": "<categories>"
},
"name": "dos2_put_journal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign | Yes | The campaign to work on: its name, its folder name, its UUID, or a unique part of any of them. dos2_status lists the campaigns. | |
| categories | Yes | The whole journal, in display order: [{"title": "...", "shared": false, "chapters": [{"title": "...", "shared": false, "paragraphs": [{"text": "...", "shared": false}]}]}]. shared=true is meant to show the entry to players. | |
| allow_running | No | Keep false. Set true only after the user has confirmed that the running game sits in the main menu: a write into a campaign that is loaded in the game gets lost or damages it. |