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]
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 |