Firmware extraction (isolated, static)
firmware_extractExtracts firmware image members into a workspace directory with binwalk or a pure-JS carve, keeping output contained and never executing extracted content.
Instructions
Extract members from a firmware image into a workspace directory. When binwalk is available it is run with --extract inside the workspace; otherwise a pure-JS best-effort carve is used that splits embedded gzip/xz/bzip2/zstd streams by magic and parses cpio "newc" archives. All output stays inside the workspace. Extracted content is NEVER executed.
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": {
"filePath": "<filePath>"
},
"name": "firmware_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the artifact, relative to the authorized workspace root. | |
| outputDir | No | Output directory (workspace-relative). Defaults to extraction-out/<name>. |