Edit campaign name, description, author
dos2_campaign_metaEdits a DOS2 campaign's name, description, and author in meta.lsf with a backup, or returns the current metadata when no fields are given.
Instructions
Changes the campaign's name, description and author in meta.lsf, the same fields the game edits in its campaign settings. Only the fields you pass are changed. With none of them given nothing is written and the current metadata is returned.
The campaign folder keeps its name, because the game identifies the campaign by it. 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. Returns the backup id and the resulting metadata.
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>"
},
"name": "dos2_campaign_meta"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New campaign name as shown in the game's campaign list. Omit to keep the current one. | |
| author | No | New author name. Omit to keep the current one. | |
| 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. | |
| description | No | New campaign description. Omit to keep the current one. | |
| 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. |