Inspect Rust Cpp Binary
inspect_rust_cpp_binaryExtract Rust compiler metadata and C++ RTTI/vtable layouts from local ELF, Mach-O, or PE binaries without executing them or requiring external toolchains.
Instructions
Inspect a local ELF, Mach-O, or PE binary for Rust compiler metadata (rustc version, commit hash, crate dependencies, recovered .rs source files, core::panicking::Location records, and demangled v0/legacy Rust symbols) and C++ RTTI / vtable class layouts (Itanium and MSVC ABI typeinfo, base class hierarchies, virtual method tables, and demangled C++ symbols) in pure TypeScript without executing the target or requiring external toolchains.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "/artifacts/application",
"max_symbols": 500,
"max_panic_locations": 500
},
"name": "inspect_rust_cpp_binary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute filesystem path to the local ELF, Mach-O, or PE binary to inspect. | |
| max_symbols | No | Maximum number of demangled Rust/C++ symbols to return (default 500). | |
| max_panic_locations | No | Maximum number of Rust core::panicking::Location records to return (default 500). |