Read a campaign file as LSX
dos2_rawConverts any binary .lsf campaign file to LSX text, whole or filtered by XPath, for exploring campaign data that structured tools do not expose. Read-only; output can be truncated.
Instructions
Converts any binary campaign file (.lsf) to LSX text and returns it, whole or filtered by XPath. This is the escape hatch for exploring data the other tools do not expose.
Read-only. Prefer the structured tools (dos2_campaign, dos2_scene, dos2_template, dos2_vignettes, dos2_notes)
when they cover the need: raw files are large. With xpath the output starts with a match count; output longer
than max_chars is truncated with a note. Fails with an error if the file does not exist in the campaign.
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>",
"file": "<file>"
},
"name": "dos2_raw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path of the file inside the campaign folder, e.g. "Eggs.lsf", "meta.lsf" or "LevelCache/<scene ID>.lsf". | |
| xpath | No | ElementTree XPath to return only matching nodes, e.g. ".//node[@id='Note']". Omit to get the whole file. | |
| 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. | |
| max_chars | No | Cut the output to this many characters (default 20000). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |