torch_export_code
Export decompiled C source code from N64 ROM assets for inspection or modification.
Instructions
Export decompiled C source code representation of N64 assets from a ROM using Torch.
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": {
"rom_path": "<rom_path>"
},
"name": "torch_export_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| single | No | Export code for only a single YAML asset file | |
| srcdir | No | Directory containing config.yml | |
| destdir | No | Output directory where C code will be written | |
| verbose | No | Enable verbose output and include byte offsets where supported | |
| rom_path | Yes | Path to the N64 ROM file | |
| timeout_ms | No | Timeout in milliseconds (default 600000 = 10 minutes) | |
| torch_path | No | Optional custom path to torch binary |