get_imports_exports
Retrieve symbol-level import and export tables from PE, ELF, or MachO binaries. Control output size with optional limits and filter by library name.
Instructions
Return symbol-level import and export tables for path.
Args:
path: PE / ELF / MachO to analyze.
max_imports: cap the returned imports list to this many
entries. 0 = no cap (the v2.9.0 default).
max_exports: same cap for the exports list.
library_filter: optional substring filter against the
library name (pipe-separated for OR). e.g.
"kernel32|user32" to keep only those two.
Added in v2.9.1+ to fix Gap 27 (the response-size ceiling
on the 4 large VM-protected targets). The response includes
a truncated flag + original_count / returned_count
when the caps fire. The v2.9.0 callers (no kwargs) are
unaffected.
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": {
"path": "<path>"
},
"name": "get_imports_exports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_imports | No | ||
| max_exports | No | ||
| library_filter | No |