xxd
Convert files to hexadecimal representation and reverse hex dumps back to binary. Use for inspecting or modifying binary data.
Instructions
Run xxd on a file to create a hex dump.
The xxd utility creates a hexadecimal representation of a file, similar to hexdump but with additional features like reverse conversion (hex to binary).
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": "xxd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Additional arguments to pass to xxd. Common options include: - -r: Reverse operation (hex to binary) - -p: Plain hex dump format - -s OFFSET: Skip offset bytes - -l LENGTH: Limit output to length bytes | |
| file | No | Optional path to the file to analyze. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |