file_cmd
Identify file type by analyzing magic bytes and structure. Detects formats such as ELF, PE, archives, and images.
Instructions
Run the file command to determine file type.
The file command performs a series of tests to identify the type of a file. It can detect file formats like ELF, PE, archives, images, and many others based on magic bytes and file structure.
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": {
"args": "<args>"
},
"name": "file_cmd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Additional arguments to pass to file command. Common options include: - -b: Brief output (don't show filename) - -z: Try to detect compressed files - -i: Output MIME type instead of human-readable | |
| file | No | Optional path to the file to analyze. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |