Inspect Python Frozen Binary
inspect_python_frozen_binaryAnalyze PyInstaller frozen Python executables and .pyc files without executing them or needing Python. Recover MEI cookies, Python version, entry scripts, bundled modules, and code-object summaries.
Instructions
Inspect a frozen Python executable (PyInstaller CArchive/PKG/PYZ ELF, PE, or Mach-O) or standalone .pyc bytecode file in pure TypeScript without executing target code or requiring a Python runtime. Recovers PyInstaller MEI cookies, Python version, entry scripts, bundled modules, native extensions, CArchive table-of-contents entries, and .pyc marshal code object summaries (names, varnames, string constants, and imported module names).
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/frozen_app",
"max_toc_entries": 1000,
"max_code_objects": 200
},
"name": "inspect_python_frozen_binary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute filesystem path to a frozen Python executable (PyInstaller ELF/PE/Mach-O) or standalone .pyc bytecode file. | |
| max_entries | No | Optional alias for max_toc_entries: maximum number of CArchive/PYZ entries to return. | |
| max_strings | No | Optional cap on string constants returned per code object. | |
| max_toc_entries | No | Maximum number of PyInstaller CArchive/PYZ table-of-contents entries to return (default 1000). | |
| max_code_objects | No | Maximum number of Python marshal code objects to return when inspecting .pyc bytecode (default 200). |