Extract a scenario into a Lua project
cmo_extract_projectUnpack a .scen scenario file into an editable cmo-lua project with a JSON manifest and one Lua script per event action, ready for editing and recompiling.
Instructions
Unpack a .scen file into a cmo-lua project: cmo-project.json plus one scripts/*.lua file per event action. Edit those files, then cmo_compile_loader. Refuses to replace an existing project unless overwrite is true.
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": {
"path": "<path>",
"directory": "<directory>"
},
"name": "cmo_extract_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Scenario file to read | |
| directory | Yes | Folder to create the project in | |
| overwrite | No | Replace cmo-project.json and extracted scripts if they already exist |