foremost
Recover deleted files from disk images and raw data by scanning headers and footers. Restores data from formatted or corrupted media and lost filesystem metadata, organizing files by type.
Instructions
File carving tool — recovers deleted files from disk images and raw data by searching for file headers, footers, and data structures. Supports common formats: images, documents, archives, executables. Use for data recovery from formatted drives, corrupted media, or when filesystem metadata is lost. Output: recovered files organized by type in the output directory.
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": "foremost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opts | No | Additional foremost options (e.g. '-t jpg,pdf,doc' to limit to specific file types) | |
| filepath | Yes | Path to disk image or raw data file to carve | |
| output_dir | No | Output directory for recovered files (default: foremost_output) |