Carve bytes out of a file
re_extractCopy an embedded byte range from a source file into a separate workspace file to extract assets such as PNG, WAV, GLB, or ZIP data; length can be omitted for self-describing formats.
Instructions
Copies a byte range (e.g. an embedded PNG/WAV/glb/ZIP found by re_probe) into the workspace as its own file. length is optional when the embedded format stores its size (RIFF/WAV, glb, PNG). To unpack a whole archive or pack, use re_archive with action:"extract" instead.
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": {
"file": "<file>",
"offset": "<offset>"
},
"name": "re_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Source file. | |
| name | No | Output file name. | |
| length | No | Bytes to copy. | |
| offset | Yes | Start offset. |