kotor_extract_resource
Extract a resolved game resource to disk by specifying game, resref, restype, and output path. Optionally restrict source to OVERRIDE, CHITIN, or MODULES.
Instructions
Use when you need to write a resolved resource to disk. Optional 'source' restricts to one location (OVERRIDE, CHITIN, MODULES). Writes to disk. [destructiveHint: writes to disk]
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": {
"game": "<game>",
"resref": "<resref>",
"restype": "<restype>",
"output_path": "<output_path>"
},
"name": "kotor_extract_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | Yes | Game alias: k1 or k2 | |
| resref | Yes | Resource reference name | |
| restype | Yes | Resource type (extension or name) | |
| output_path | Yes | Output file or directory path (validated) | |
| source | No | Optional: extract only from this location (OVERRIDE, CHITIN, MODULES, etc.). Omit for first match in canonical order |