disassemble_file_section
Disassemble a specific section (e.g., .text) from binary files (PE/ELF/Mach-O) to analyze machine code. Supports auto-detection of architecture and limiting instruction count.
Instructions
Disassemble a named section from a binary file (PE/ELF/Mach-O).
Args: file_path: Absolute path to the binary file. section_name: Section name to disassemble. Default: ".text". arch: CPU architecture. Auto-detected from file header if omitted. max_instructions: Maximum instructions to disassemble. Default: 200. Set 0 for unlimited.
Returns: Disassembly output for the section, including file metadata.
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_path": "<file_path>"
},
"name": "disassemble_file_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| section_name | No | .text | |
| arch | No | ||
| max_instructions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |