MCP ScannerCustom audit
All servers

jtsylve/re-mcp

A headless MCP server for IDA Pro and Ghidra

Packagere-mcp
Version3.0.4.dev1 in pyproject.toml
Publisherjtsylve community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 180Forks 27Last push 2026-09-18
Python 100.0%by source files the scanner reads
Code safetypartly tracedExposure2.9Prompts10.0Supply chain1.9Secrets10.0Transparency10.0
Analysis confidence82%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure2.9/10Poor

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain1.9/10Poor

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • In 477 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 347 of 696 tools, prompts and resources could not be followed through the code
  • 333 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code

Top risks in plain words

  • CRITICAL12 production dependencies have known vulnerabilities (worst: critical).
  • HIGHTool run_script executes code by design: an agent steered by prompt injection can use it that way.
  • HIGHTools create_folder, delete_folder, generate_exe_file, generate_output_file and 2 more read or write any file path by design: an agent steered by prompt injection can use them that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Run it in a container or a virtual machine

    run_script can start programs or run code they are given. Keep it away from your home folder, keys and other projects.

  • Give it only the folder it needs

    create_folder, delete_folder, generate_exe_file, generate_output_file and 2 more can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need create_folder, delete_folder, generate_exe_file and 4 more, switch them off.

  • Update its vulnerable packages

    Use anyio 4.14.2 or later, authlib 1.9.1 or later, certifi 2026.10.18 or later, cryptography 50.0.0 or later and 8 more.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 657 tools, 31 resources, 8 prompts. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
apply_function_id, db_entrypoints, db_entrypoints_search, db_exports, db_exports_search, db_imports and 30 more
39 of 696

No tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; read environment variables; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files31 tools · apply_function_id, db_entrypoints, db_entrypoints_search +28
Reads private data27 tools
Takes text from outside0 tools
Can send data out0 tools

Not all three are present in the tools the scanner traced.

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (696: 657 tools, 31 resources, 8 prompts)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

create_foldertool Create a new folder (module) in the program tree.Reads/writes files
Create a new folder (module) in the program tree.

        Args:
            tree: Program tree name.
            path: Full path of the folder to create (e.g. "/crypto/aes").
create_foldertool Create a new folder in IDA's directory tree.Reads/writes files
Create a new folder in IDA's directory tree.

        Args:
            tree: Which tree — "funcs", "names", "local_types", or "imports".
            path: Full path of the folder to create (e.g. "/crypto/aes").
delete_foldertool Delete a folder (module) from the program tree.Reads/writes files
Delete a folder (module) from the program tree.

        The folder must be empty (no children) to be deleted.

        Args:
            tree: Program tree name.
            path: Path of the folder to delete.
delete_foldertool Delete an empty folder from IDA's directory tree.Reads/writes files
Delete an empty folder from IDA's directory tree.

        Args:
            tree: Which tree — "funcs", "names", "local_types", or "imports".
            path: Path of the folder to delete.
generate_exe_filetool Generate (rebuild) an executable file from the database.Filesoutside textReads/writes files
Generate (rebuild) an executable file from the database.

        Reconstructs a binary file from the current database state,
        including any patches applied. Not all loaders support this —
        will return an error for unsupported formats. Primarily useful
        for applying patches to simple binaries.

        Args:
            output_path: Path where the executable will be written.
generate_output_filetool Write an IDA-native .asm/.lst/.map/.dif/.idc file to disk.Filesoutside textReads/writes files
Write an IDA-native .asm/.lst/.map/.dif/.idc file to disk.

        Produces files with full IDA formatting including comments,
        cross-references, and segment information. Omitting start/end
        addresses exports the entire database, which can be slow and
        produce very large files on big binaries. Specify a function
        or segment range for targeted exports.

        Args:
            output_path: Path where the output file will be written.
            output_type: Type of output — "asm" (assembly), "lst" (listing
                with metadata), "map" (segment map), "dif" (diff format),
                or "idc" (IDC script).
            start_address: Start address of range (empty = entire database).
            end_address: End address of range (empty = entire database).
            flags: Output generation flags (GENFLG_*).
open_databasetool Open a binary for analysis with Ghidra.FilesReads/writes files
Open a binary for analysis with Ghidra.

            Returns immediately with ``"opening": true`` — call
            wait_for_analysis before using other tools on this database.
            Re-opening an already-open database returns the existing worker.

            **Multiple binaries:** use a separate subagent per binary.

            **force_new=True** is destructive: deletes existing Ghidra
            project and all prior analysis.

            Args:
                file_path: Path to the binary file.
                run_auto_analysis: Run Ghidra auto-analysis after opening.
                keep_open: Keep other open databases (default True).
                database_id: Custom ID (must match [a-z][a-z0-9_]{0,31}).
                force_new: Delete existing project and start fresh.
                language: Ghidra language ID (e.g. ``x86:LE:64:default``,
                          ``ARM:LE:32:v8``). Auto-detected when omitted.
                          Use list_targets to see options.
                compiler_spec: Ghidra compiler spec (e.g. ``gcc``,
                               ``windows``). Auto-detected when omitted.
open_databasetool Open a binary for analysis. Called by the worker on supervisor's behalf.Filesoutside textReads/writes files
Open a binary for analysis. Called by the worker on supervisor's behalf.
open_databasetool Open a binary or existing IDA database (.i64/.idb) for analysis.Filesoutside textReads/writes files
Open a binary or existing IDA database (.i64/.idb) for analysis.

            Returns immediately with ``"opening": true`` — call
            wait_for_analysis before using other tools on this database.
            Re-opening an already-open database returns the existing worker.

            **Multiple binaries:** use a separate subagent per binary.
            Each agent calls open_database then wait_for_analysis. Do NOT
            serialize open+wait calls — that blocks parallel loading.

            **force_new=True** is destructive: deletes existing .i64/.idb
            and all prior analysis. Use only for stale/incompatible DBs.

            **Fat Mach-O:** requires explicit *fat_arch* (e.g. ``arm64``).
            Error lists available slices. Use distinct *database_id* per
            slice for concurrent analysis. *fat_arch* must be omitted for
            non-fat files and existing databases.

            Args:
                file_path: Path to the binary file or IDA database.
                run_auto_analysis: Run IDA auto-analysis after opening.
                keep_open: Keep other open databases (default True).
                database_id: Custom ID (must match [a-z][a-z0-9_]{0,31}).
                force_new: Delete existing DB files and start fresh.
                processor: IDA processor module (e.g. ``metapc``, ``arm``,
                           ``mips``). Auto-detected when omitted.
                           **ARM:** defaults to AArch64 — use
                           ``arm:ARMv7-M`` for Cortex-M, ``arm:ARMv7-A``
                           for 32-bit. Use list_targets to see options.
                loader: IDA loader (e.g. "ELF", "PE", "Binary file").
                        Auto-detected when omitted. See list_targets.
                base_address: Base address for raw binaries (hex/decimal,
                              16-byte aligned). Ignored for structured formats.
                fat_arch: Mach-O fat slice (``x86_64``, ``arm64``, etc.).
                          Required for fat binaries; must be omitted for
                          thin files and existing databases.
                options: Extra IDA CLI arguments. Do not duplicate
                         processor/loader/base_address flags here.
open_databasetool Open a binary or existing IDA database for analysis.Filesoutside textReads/writes files
Open a binary or existing IDA database for analysis.

        This must be called before using any other analysis tools.
        If a database is already open, it will be saved and closed first.

        file_path can be a raw binary or an existing .i64/.idb database.
        When a database is passed, the original binary does not need to be present.

        Set run_auto_analysis=True only for first-time analysis of a new binary
        (no existing .i64). For existing databases, analysis is already stored —
        leave this False to avoid blocking. Call wait_for_analysis separately if needed.

        Args:
            file_path: Path to the binary file or IDA database (.i64/.idb).
            run_auto_analysis: Wait for auto-analysis to complete before returning.
                               Default False — safe for existing .i64 databases.
            force_new: **Destructive** — permanently delete any existing database
                       files (.i64, .idb, etc.) and start fresh from the raw
                       binary, discarding all prior analysis.  Useful when IDA
                       returns error code 4 due to a stale or incompatible database.
            processor: Optional.  IDA processor module, optionally with a
                       variant after a colon.  IDA auto-detects from file
                       headers when omitted, but may guess wrong for raw
                       binaries.  **ARM gotcha:** the ``arm`` module
                       defaults to AArch64 (64-bit) for raw binaries —
                       use ``arm:ARMv7-M`` for Cortex-M firmware,
                       ``arm:ARMv7-A`` for 32-bit A-profile, or
                       ``arm:ARMv7-R`` for R-profile.  Other examples:
                       ``metapc`` (x86/x64), ``ppc``, ``mips``, ``mipsl``.
            loader: Optional.  IDA loader to use instead of auto-detection
                    (e.g. "ELF", "PE", "Mach-O", "Binary file").
            base_address: Optional.  Base loading address for the binary
                          (hex or decimal).  Must be 16-byte aligned.
                          Primarily useful for raw binary files; structured
                          formats (ELF, PE, Mach-O) contain their own base
                          addresses.
            fat_arch: Optional.  Architecture slice name (``x86_64``,
                      ``arm64``, ``arm64e``, ...) to extract from a
                      Mach-O fat (universal) binary.  Required when
                      opening a fat binary — the error on a missing
                      slice lists the available names.  Must be
                      omitted for thin / non-Mach-O files **and** for
                      explicit ``.i64``/``.idb`` database paths
                      (stored analysis already pins the slice);
                      either combination raises ``InvalidArgument``.
            options: Optional.  Additional IDA command-line arguments.
                     Processor, loader, and base address flags are added
                     automatically from the other parameters — do not
                     duplicate them here.
rename_foldertool Rename a folder (module) in the program tree.Reads/writes files
Rename a folder (module) in the program tree.

        The new_path should have the same parent; only the leaf name
        is changed.

        Args:
            tree: Program tree name.
            old_path: Current path of the folder.
            new_path: New path for the folder.
rename_foldertool Rename or move a folder in IDA's directory tree.Reads/writes files
Rename or move a folder in IDA's directory tree.

        Args:
            tree: Which tree — "funcs", "names", "local_types", or "imports".
            old_path: Current path of the folder/item.
            new_path: New path for the folder/item.
run_scripttool DANGEROUS: run arbitrary IDAPython with full FS/network access.Executes code
DANGEROUS: run arbitrary IDAPython with full FS/network access.

            SECURITY WARNING: This runs arbitrary Python with FULL access to the
            filesystem, network, and IDA internals. Only use with trusted input.
            Prefer the dedicated tools when possible — this is a last resort for
            operations not covered by other tools.

            This tool is only available when the IDA_MCP_ALLOW_SCRIPTS
            environment variable is set to "1", "true", or "yes".

            Args:
                code: Python code to execute. Use print() for output.
analyze_functionprompt Full single-function analysis. Decompiles, maps data flow, identifies strings and constants, and summarizes behavior.
Full single-function analysis. Decompiles, maps data flow, identifies strings and constants, and summarizes behavior.
apply_abiprompt Apply known ABI type information to identified functions (e.g. syscalls, Windows API wrappers, libc stubs).
Apply known ABI type information to identified functions (e.g. syscalls, Windows API wrappers, libc stubs).
auto_rename_stringsprompt Suggest function renames based on unique string references. Does not apply changes — presents suggestions for review.
Suggest function renames based on unique string references. Does not apply changes — presents suggestions for review.
classify_functionsprompt Classify functions by behavioral patterns to prioritize analysis effort.
Classify functions by behavioral patterns to prioritize analysis effort.
diff_before_afterprompt Preview the effect of renaming or retyping on decompiler output. Decompiles before and after, then shows what changed.
Preview the effect of renaming or retyping on decompiler output. Decompiles before and after, then shows what changed.
export_idc_scriptprompt Generate an IDAPython script that reproduces all user annotations (renames, types, comments) for portability to another IDB.
Generate an IDAPython script that reproduces all user annotations (renames, types, comments) for portability to another IDB.
find_crypto_constantsprompt Scan for known cryptographic constants to identify crypto algorithms in use.
Scan for known cryptographic constants to identify crypto algorithms in use.
survey_binaryprompt One-call binary triage. Produces an executive summary of the binary: what it is, what it does, key areas of interest, and recommended next steps.
One-call binary triage. Produces an executive summary of the binary: what it is, what it does, key areas of interest, and recommended next steps.
(name computed at run time)resource
No description.
(name computed at run time)resource
No description.
databases_resourceresource All open databases with worker status (supervisor-level)
All open databases with worker status (supervisor-level)
db_entrypointsresource All entry points with address and nameFilesoutside text
All entry points with address and name
db_entrypoints_searchresource Search entry points by name regex patternFilesoutside text
Search entry points by name regex pattern
db_exportsresource All exported symbolsFilesoutside text
All exported symbols
db_exports_searchresource Search exports by name regexFilesoutside text
Search exports by name regex
db_importsresource All imports grouped by moduleFilesoutside text
All imports grouped by module
db_imports_searchresource Search imports by module or symbol name regexFilesoutside text
Search imports by module or symbol name regex
db_statisticsresource Summary counts: functions, strings, segments, names, coverageFilesoutside text
Summary counts: functions, strings, segments, names, coverage
ghidra://db/entrypoints/search/{pattern}{?offset,limit}resource
No description.
ghidra://db/entrypoints{?offset,limit}resource
No description.
ghidra://db/exports/search/{pattern}{?offset,limit}resource
No description.
ghidra://db/exports{?offset,limit}resource
No description.
ghidra://db/imports/search/{pattern}{?offset,limit}resource
No description.
ghidra://db/imports{?offset,limit}resource
No description.
ghidra://db/statisticsresource
No description.
ida://idb/entrypoints/search/{pattern}{?offset,limit}resource
No description.
ida://idb/entrypoints{?offset,limit}resource
No description.
ida://idb/exports/search/{pattern}{?offset,limit}resource
No description.
ida://idb/exports{?offset,limit}resource
No description.
ida://idb/imports/search/{pattern}{?offset,limit}resource
No description.
ida://idb/imports{?offset,limit}resource
No description.
ida://idb/statisticsresource
No description.
idb_entrypointsresource All entry points with ordinal, address, nameFilesoutside text
All entry points with ordinal, address, name
idb_entrypoints_searchresource Search entry points by name regex patternFilesoutside text
Search entry points by name regex pattern
idb_exportsresource All exported symbols with ordinalsFilesoutside text
All exported symbols with ordinals
idb_exports_searchresource Search exports by name regex patternFilesoutside text
Search exports by name regex pattern
idb_importsresource All imports grouped by moduleFilesoutside text
All imports grouped by module
idb_imports_searchresource Search imports by module or symbol name regex patternFilesoutside text
Search imports by module or symbol name regex pattern
idb_statisticsresource Summary counts: functions, strings, segments, names, coverageFilesoutside text
Summary counts: functions, strings, segments, names, coverage
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
add_code_xreftool Add a code cross-reference between two addresses.
Add a code cross-reference between two addresses.

        Args:
            from_address: Source address of the reference.
            to_address: Target address of the reference.
            xref_type: Reference type -- "UNCONDITIONAL_CALL", "CONDITIONAL_CALL",
                "UNCONDITIONAL_JUMP", "CONDITIONAL_JUMP", or "FALL_THROUGH".
add_code_xreftool Add a code cross-reference between two addresses.
Add a code cross-reference between two addresses.

        Args:
            from_address: Source address of the reference.
            to_address: Target address of the reference.
            xref_type: Reference type — "fl_CF" (call far), "fl_CN" (call near),
                "fl_JF" (jump far), "fl_JN" (jump near), "fl_F" (ordinary flow).
add_data_xreftool Add a data cross-reference between two addresses.
Add a data cross-reference between two addresses.

        Args:
            from_address: Source address of the reference.
            to_address: Target address of the reference.
            xref_type: Reference type -- "READ", "WRITE", "READ_WRITE",
                "DATA", or "INDIRECTION".
add_data_xreftool Add a data cross-reference between two addresses.
Add a data cross-reference between two addresses.

        Args:
            from_address: Source address of the reference.
            to_address: Target address of the reference.
            xref_type: Reference type — "dr_R" (read), "dr_W" (write),
                "dr_O" (offset), "dr_I" (informational), "dr_T" (text),
                "dr_S" (stack).
add_entry_pointtool Register a new entry point at an address.
Register a new entry point at an address.

        Adds the address as an external entry point and creates a label
        with the given name.

        Args:
            address: Address of the entry point.
            name: Name for the entry point.
add_entry_pointtool Register a new entry point at an address; does not rename existing ones.
Register a new entry point at an address; does not rename existing ones.

        Args:
            address: Address of the entry point.
            name: Name for the entry point.
            ordinal: Ordinal number (0 to auto-assign).
            make_code: Whether to mark the address as code.
add_enum_membertool Add a member to an enum.
Add a member to an enum.

        Args:
            enum_name: Name of the enum.
            member_name: Name for the new member.
            value: Integer value for the member.
add_enum_membertool Add a member to an enum.
Add a member to an enum.

        Args:
            enum_name: Name of the enum.
            member_name: Name for the new member.
            value: Integer value for the member.
add_hidden_rangetool Create a hidden (collapsed) range in the disassembly listing.
Create a hidden (collapsed) range in the disassembly listing.

        Hidden ranges collapse a range of addresses into a single line in the
        listing, useful for hiding uninteresting code or data.

        Args:
            start_address: Start of the range.
            end_address: End of the range (exclusive).
            description: Optional description shown when collapsed.
add_regvartool Define a register variable within a function.
Define a register variable within a function.

        Maps a physical register to a user-defined name for the range
        [start_address, end_address). This affects disassembly display for
        that address range — register references will show the user name.

        Args:
            function_address: Address or name of the containing function.
            start_address: Start of the range where this mapping applies.
            end_address: End of the range (exclusive).
            register_name: Canonical register name (e.g. "eax", "rbx").
            user_name: Name to display instead of the register.
            comment: Optional comment for this definition.
add_struct_membertool Add a member to a structure.
Add a member to a structure.

        Args:
            struct_name: Name of the structure.
            member_name: Name for the new member.
            member_type: C type of the member (e.g. "int", "char *").
            offset: Byte offset (-1 to append at end).
            size: Size in bytes (0 to auto-detect from type).
add_struct_membertool Add a member to an existing structure.
Add a member to an existing structure.

        Args:
            struct_name: Name of the structure.
            member_name: Name for the new member.
            offset: Byte offset (-1 to append at end).
            size: Size in bytes (1, 2, 4, or 8).
            type_str: Optional C type string for the member.
append_commenttool Append to an existing disassembly comment without overwriting.
Append to an existing disassembly comment without overwriting.

        Use set_comment to replace wholesale. If the comment already contains
        the exact text, it is not duplicated. If no existing comment is
        present, this behaves like set_comment.

        Args:
            address: Address or symbol name.
            comment: Comment text to append.
            repeatable: If True, append to the repeatable comment.
            separator: Separator between existing and new text (default newline).
append_function_tailtool Append a tail (non-contiguous range) to a function body.
Append a tail (non-contiguous range) to a function body.

        Args:
            function_address: Address or name of the owning function.
            start: Start address of the tail region.
            end: End address of the tail region (exclusive).
append_function_tailtool Append a tail (non-contiguous chunk) to a function.
Append a tail (non-contiguous chunk) to a function.

        Args:
            function_address: Address or name of the owning function.
            start: Start address of the tail region.
            end: End address of the tail region (exclusive).
apply_flirt_signaturetool Apply a FLIRT signature library to auto-identify and name library functions.
Apply a FLIRT signature library to auto-identify and name library functions.

        Essential for statically linked binaries.

        Args:
            sig_name: Name of the signature file (without extension), e.g. "libc".
apply_function_idtool Apply Function ID (FID) analysis to identify known library functions.Filesoutside text
Apply Function ID (FID) analysis to identify known library functions.

        Ghidra's Function ID is the equivalent of IDA's FLIRT signatures.
        This runs the FID analyzer to match known function signatures
        against the program's functions.

        Note: Full FID analysis requires the FID databases to be
        pre-configured in Ghidra's installation. The headless/pyghidra
        API has limited FID support.

        Args:
            fid_name: Optional FID database name to apply (empty for all
                available databases).
apply_type_at_addresstool Apply a named type from the type library at an address.
Apply a named type from the type library at an address.

        The type must already exist (defined via parse_type_declaration
        or present in the program's built-in types).
apply_type_at_addresstool Apply an already-defined local type (struct/typedef/enum) at an address.
Apply an already-defined local type (struct/typedef/enum) at an address.

        Preferred over set_type when the type is already defined (via
        parse_type_declaration or an existing local type) — resolves by name
        and handles complex types correctly. Use get_local_type to verify
        the type exists before applying. Use set_type for inline type strings.

        Args:
            address: Address to apply the type at.
            type_name: Name of a type in the local type library.
assemble_instructiontool Assemble an instruction at an address without patching (dry-run).
Assemble an instruction at an address without patching (dry-run).

        Use patch_asm to assemble and write in one step.

        Args:
            address: Address where the instruction should be assembled.
            instruction: Assembly instruction text (e.g. "NOP", "MOV EAX,1").
assemble_instructiontool Assemble an instruction at an address without patching (dry-run).
Assemble an instruction at an address without patching (dry-run).

        Use patch_asm to assemble and write in one step.

        Args:
            address: Address where the instruction should be assembled.
            instruction: Assembly instruction text (e.g. "nop", "mov eax, 1").
close_databasetool Close a database and terminate its worker process.
Close a database and terminate its worker process.

            Specify *database* when multiple are open. Fails if the DB is
            not attached to the current session unless force=True. When other
            sessions still use the DB, detaches this session but keeps the
            worker alive.
close_databasetool Close the current database.
Close the current database.
close_databasetool Close the currently open database.
Close the currently open database.

        Args:
            save: Whether to save changes to the IDB file.
convert_numbertool Convert a number between hex, decimal, octal, and binary representations.
Convert a number between hex, decimal, octal, and binary representations.

        This is useful because LLMs frequently make errors with base conversions.
        Also returns signed 32-bit and 64-bit interpretations when the value fits,
        useful for understanding sign-extended values in disassembly.

        Args:
            value: Number to convert (prefix with 0x for hex, 0o for octal, 0b for binary).
convert_numbertool Convert a number between hex, decimal, octal, and binary representations.
Convert a number between hex, decimal, octal, and binary representations.

        This is useful because LLMs frequently make errors with base conversions.
        Also returns signed 32-bit and 64-bit interpretations when the value fits,
        useful for understanding sign-extended values in disassembly.

        Args:
            value: Number to convert (prefix with 0x for hex, 0o for octal, 0b for binary).
create_enumtool Create a new enum type.
Create a new enum type.

        Args:
            name: Name for the enum.
            bitfield: If True, create as a bitfield enum (unused in Ghidra but
                reserved for future use).
create_enumtool Create a new enum type (optionally as a bitfield).
Create a new enum type (optionally as a bitfield).

        Args:
            name: Name for the enum.
            bitfield: If True, create as a bitfield enum (members are bitmasks).
create_functiontool Define a new function at an address (Ghidra auto-detects bounds).
Define a new function at an address (Ghidra auto-detects bounds).

        Args:
            address: Start address for the new function.
create_functiontool Define a new function at an address (IDA auto-detects bounds).
Define a new function at an address (IDA auto-detects bounds).

        Args:
            address: Start address for the new function.
create_segmenttool Create a new initialized memory block (segment).
Create a new initialized memory block (segment).

        Args:
            name: Name for the block (e.g. ".mydata").
            start_address: Start address of the block.
            end_address: End address of the block (exclusive).
            permissions: Permission string like "RWX", "R--", "RW-".
create_segmenttool Create a new segment in the database.
Create a new segment in the database.

        Args:
            name: Name for the segment (e.g. ".mydata").
            start_address: Start address of the segment.
            end_address: End address of the segment (exclusive).
            segment_class: Segment class — "CODE", "DATA", "BSS", "STACK", etc.
            bitness: Address size — 0 for 16-bit, 1 for 32-bit, 2 for 64-bit.
            permissions: Permission string like "RWX", "R--", "RW-".
create_structuretool Create a new structure or union.
Create a new structure or union.
create_structuretool Create a new structure or union.
Create a new structure or union.

        Args:
            name: Name for the new structure.
            is_union: If True, create a union instead of a struct.
decode_instructiontool Decode ONE instruction at an address (mnemonic, operands, size).
Decode ONE instruction at an address (mnemonic, operands, size).

        Operand indices from the result can be used with get_operand_value.

        Args:
            address: Address of the instruction.
decode_instructiontool Decode ONE instruction at an address (mnemonic, operands, size).
Decode ONE instruction at an address (mnemonic, operands, size).

        Operand indices from the result can be used with set_operand_*
        and get_operand_value tools.

        Args:
            address: Address of the instruction.
decode_instructionstool Decode N sequential instructions from any address (not bounded by function limits).
Decode N sequential instructions from any address (not bounded by function limits).

        Use for shellcode, inline data, or ranges across function boundaries.
        For a complete function listing, prefer disassemble_function.

        Args:
            address: Starting address.
            count: Number of instructions to decode (max 200).
decode_instructionstool Decode N sequential instructions from any address (not bounded by function limits).
Decode N sequential instructions from any address (not bounded by function limits).

        Use for shellcode, inline data, or ranges across function boundaries.
        For a complete function listing, prefer disassemble_function.

        Args:
            address: Starting address.
            count: Number of instructions to decode (max 200).
decompile_functiontool Decompile a function to C pseudocode using Ghidra's decompiler.Filesoutside text
Decompile a function to C pseudocode using Ghidra's decompiler.
decompile_functiontool Decompile ONE function to pseudocode using Hex-Rays.
Decompile ONE function to pseudocode using Hex-Rays.

        Takes a single function (by `address` OR `name`) — no list parameter.
        For many functions in one request, see the `batch` meta-tool.

        Requires a Hex-Rays decompiler license. For quick inspection without
        decompilation, use disassemble_function (faster, no license needed).

        Args:
            address: Address of the function (hex string or symbol).
            name: Name of the function to decompile.
delete_bookmarktool Delete bookmark(s) at an address.
Delete bookmark(s) at an address.

        Args:
            address: Address of the bookmark(s) to delete.
            category: If provided, only delete bookmarks in this category.
                Empty string deletes all bookmarks at the address.
delete_bookmarktool Delete a bookmark by slot number.
Delete a bookmark by slot number.

        Args:
            slot: Bookmark slot number to delete.
delete_code_xreftool Delete a code cross-reference.
Delete a code cross-reference.

        Args:
            from_address: Source address of the reference to remove.
            to_address: Target address of the reference to remove.
delete_code_xreftool Delete a code cross-reference.
Delete a code cross-reference.

        Args:
            from_address: Source address of the reference to remove.
            to_address: Target address of the reference to remove.
            expand: If True, the function at the target may be truncated.
delete_data_xreftool Delete a data cross-reference.
Delete a data cross-reference.

        Args:
            from_address: Source address of the reference to remove.
            to_address: Target address of the reference to remove.
delete_data_xreftool Delete a data cross-reference.
Delete a data cross-reference.

        Args:
            from_address: Source address of the reference to remove.
            to_address: Target address of the reference to remove.
delete_enumtool Delete an enum by name.
Delete an enum by name.

        Args:
            name: Name of the enum to delete.
delete_enumtool Delete an enum by name.
Delete an enum by name.

        Args:
            name: Name of the enum to delete.
delete_enum_membertool Delete a member from an enum by its value.
Delete a member from an enum by its value.

        Args:
            enum_name: Name of the enum.
            value: Integer value of the member to delete.
delete_enum_membertool Delete a member from an enum by its value.
Delete a member from an enum by its value.

        Args:
            enum_name: Name of the enum.
            value: Integer value of the member to delete.
delete_functiontool Delete a function definition (does not delete the bytes).
Delete a function definition (does not delete the bytes).
delete_functiontool Remove a function definition without deleting the underlying code bytes.
Remove a function definition without deleting the underlying code bytes.

        The instructions remain in the database but are no longer grouped as a function.
        Use this to fix incorrect function boundaries before redefining with make_function
        or set_function_bounds.

        Args:
            address: Address or name of the function to delete.
delete_hidden_rangetool Delete a hidden range that contains the given address.
Delete a hidden range that contains the given address.

        Args:
            address: Any address within the hidden range.
delete_local_typetool Remove a data type from the program's data type manager.
Remove a data type from the program's data type manager.

        Irreversible -- the type declaration is removed. Use undo to
        revert if needed.

        Args:
            name: Name of the data type to delete.
delete_local_typetool Delete a named local type from the database.
Delete a named local type from the database.

        Irreversible — the type declaration is removed from the local type library.
        Use delete_local_type_by_ordinal for unnamed types.

        Args:
            name: Name of the local type to delete.
delete_local_type_by_ordinaltool Delete a Local Type by ordinal (for unnamed/anonymous types).
Delete a Local Type by ordinal (for unnamed/anonymous types).

        Useful for removing unnamed types that cannot be deleted by name.

        Args:
            ordinal: Ordinal number of the type to delete.
delete_regvartool Delete a register variable definition.
Delete a register variable definition.

        Removes the mapping of a register to a user name within the given
        address range. After deletion the register returns to its canonical
        name in disassembly.

        Args:
            function_address: Address or name of the containing function.
            start_address: Start of the range.
            end_address: End of the range (exclusive).
            register_name: Canonical register name (e.g. "eax", "rbx").
delete_segmenttool Delete the memory block containing the given address.
Delete the memory block containing the given address.

        Args:
            address: Any address within the memory block to delete.
delete_segmenttool Delete the segment containing the given address.
Delete the segment containing the given address.

        Args:
            address: Any address within the segment to delete.
delete_struct_membertool Delete a member from a structure.
Delete a member from a structure.

        Args:
            struct_name: Name of the structure.
            member_name: Name of the member to delete.
delete_struct_membertool Delete a member from a structure.
Delete a member from a structure.

        Args:
            struct_name: Name of the structure.
            member_name: Name of the member to delete.
delete_structuretool Delete ONE struct/union by name.
Delete ONE struct/union by name.

        Args:
            name: Name of the structure to delete.
delete_structuretool Delete ONE struct/union by name.
Delete ONE struct/union by name.

        Args:
            name: Name of the structure to delete.
demangle_at_addresstool Demangle the symbol name at a given address.
Demangle the symbol name at a given address.

        Args:
            address: Address or symbol name to demangle.
demangle_at_addresstool Demangle the symbol name at a given address.
Demangle the symbol name at a given address.

        Args:
            address: Address or symbol name to demangle.
demangle_nametool Demangle a C++ symbol name to readable form.
Demangle a C++ symbol name to readable form.

        Example: ``_ZN3FooC1Ev`` -> ``Foo::Foo(void)``.

        Args:
            name: The mangled symbol name.
demangle_nametool Demangle a C++ symbol name to readable form (e.g., _ZN3FooC1Ev -> Foo::Foo(void)).
Demangle a C++ symbol name to readable form (e.g., _ZN3FooC1Ev -> Foo::Foo(void)).

        Args:
            name: The mangled symbol name.
            disable_mask: Bitmask of demangler features to disable (0 for default).
disassemble_functiontool Disassemble a function into individual instructions.
Disassemble a function into individual instructions.
disassemble_functiontool Disassemble the ENTIRE function containing the given address.
Disassemble the ENTIRE function containing the given address.

        Takes a SINGLE address — no start/end range and no list parameter.
        For many functions in one request, see the `batch` meta-tool.

        Faster than decompile_function and does not require Hex-Rays.
        Use this for quick inspection of function logic or when only
        assembly-level detail is needed. For readable C-like pseudocode
        (decompilation), use decompile_function instead — it requires a
        Hex-Rays decompiler license. For a single instruction, use
        decode_instruction; for a byte range, use read_bytes.

        Args:
            address: Address or symbol name of the function.
evaluate_expressiontool Evaluate an IDC expression and return the result.
Evaluate an IDC expression and return the result.

        Args:
            expression: IDC expression to evaluate (e.g. "MinEA()", "0x1000+0x20").
export_all_disassemblytool Disassemble MANY functions in one call (paginated, regex-filterable).
Disassemble MANY functions in one call (paginated, regex-filterable).

        Much faster than export_all_pseudocode (no decompilation needed),
        but still processes multiple functions. Use filter_pattern to
        restrict output to relevant function groups.

        Args:
            filter_pattern: Optional regex to filter function names.
            offset: Pagination offset (by function index).
            limit: Maximum number of functions to export.
export_all_disassemblytool Disassemble MANY functions in one call (paginated, regex-filterable).
Disassemble MANY functions in one call (paginated, regex-filterable).

        Much faster than export_all_pseudocode (no decompilation needed),
        but still processes multiple functions. Use filter_pattern to
        restrict output to relevant function groups.

        Args:
            filter_pattern: Optional regex to filter function names.
            offset: Pagination offset (by function index).
            limit: Maximum number of functions to export.
export_all_pseudocodetool Decompile MANY functions in one call (expensive -- seconds each).Filesoutside text
Decompile MANY functions in one call (expensive -- seconds each).

        Expensive: decompiles functions sequentially -- each may take seconds.
        A request for 50 functions can take minutes. Prefer using
        list_functions with filter_pattern to identify targets, then call
        decompile_function individually on functions of interest. Use
        filter_pattern here to restrict output to relevant functions (e.g.
        "crypto|decrypt") rather than decompiling everything.

        Args:
            filter_pattern: Optional regex to filter function names.
            offset: Pagination offset (by function index).
            limit: Maximum number of functions to decompile.
export_all_pseudocodetool Decompile MANY functions in one call (expensive — seconds each).
Decompile MANY functions in one call (expensive — seconds each).

        Expensive: decompiles functions sequentially — each may take seconds.
        A request for 50 functions can take minutes. Prefer using
        list_functions with filter_pattern to identify targets, then call
        decompile_function individually on functions of interest. Use
        filter_pattern here to restrict output to relevant functions (e.g.
        "crypto|decrypt") rather than decompiling everything.

        Args:
            filter_pattern: Optional regex to filter function names.
            offset: Pagination offset (by function index).
            limit: Maximum number of functions to decompile.
find_code_by_stringtool Find code references to strings matching a regex pattern.
Find code references to strings matching a regex pattern.

        Combines string search + xref resolution + function lookup.
find_code_by_stringtool Find functions that xref a string matching a regex (string → caller lookup).
Find functions that xref a string matching a regex (string → caller lookup).

        Combines get_strings + get_xrefs_to + function resolution into a
        single call.  Returns a list of (string, function) pairs —
        does NOT auto-decompile.  Use the returned function addresses
        with decompile_function to inspect the code.

        Uses IDA's cached string list (built during wait_for_analysis).
        If you patch bytes or define new data, call rebuild_string_list
        first to refresh the cache.

        Args:
            pattern: Regex pattern to match string values.
            min_length: Minimum string length.
            offset: Number of results to skip (for pagination).
            limit: Maximum number of string-to-function refs to return.
find_ctree_callstool Find function call sites in the decompiled output.Filesoutside text
Find function call sites in the decompiled output.

        Scans the decompiler's token tree for function call tokens.
        Optionally filter by callee name (substring match).

        Args:
            function_address: Address or name of the function to analyze.
            callee_name: Optional name to filter calls (empty = all calls).
find_ctree_callstool Enumerate call sites inside ONE function's Hex-Rays AST (decompiled callees).
Enumerate call sites inside ONE function's Hex-Rays AST (decompiled callees).

        More targeted than get_ctree for finding call sites. Optionally
        filter by callee name (substring match). For cross-reference based
        call analysis without decompilation, use get_call_graph instead.

        Args:
            function_address: Address or name of the function to analyze.
            callee_name: Optional name to filter calls (empty = all calls).
find_ctree_patternstool Scan ONE function's Hex-Rays AST for common pattern classes (strcmp, memops, casts, ...).
Scan ONE function's Hex-Rays AST for common pattern classes (strcmp, memops, casts, ...).

        Finds common patterns like string comparisons, memory operations,
        arithmetic operations, casts, assignments, etc. Use a specific
        pattern_type to reduce output; "all" returns every pattern category,
        which can be verbose for large functions.

        Args:
            function_address: Address or name of the function.
            pattern_type: What to find — "calls", "string_refs", "comparisons",
                "assignments", "casts", "pointer_derefs", or "all".
find_immediatetool Search for instructions containing a specific immediate operand value.
Search for instructions containing a specific immediate operand value.

        Finds all instructions that use the given integer as an immediate
        operand. More precise than search_bytes (which matches raw bytes) —
        this matches the decoded operand value regardless of encoding.

        Performance: scans linearly like search_bytes. Common values (0, 1,
        alignment constants) will produce many matches. Use start_address to
        narrow the search range. Combine results with get_function to group
        matches by function.

        Args:
            value: The immediate value to search for.
            start_address: Address to start searching from (default: beginning).
            max_results: Maximum matches to return.
find_register_valuetool Try to determine a register value at an address by examining preceding instructions.
Try to determine a register value at an address by examining preceding instructions.

        This is a simplified heuristic that walks backwards from the given
        address looking for scalar loads (MOV, LEA, etc.) into the target
        register. Does not perform full dataflow or PCode emulation.

        Args:
            address: Address at which to find the register value.
            register_name: Register name (e.g. "RAX", "EAX", "R8", "ECX").
find_register_valuetool Trace a register value at an address using IDA's backwards register tracker.
Trace a register value at an address using IDA's backwards register tracker.

        Useful for resolving indirect calls and computed addresses.

        Args:
            address: Address at which to find the register value.
            register: Register name (e.g. "rax", "eax", "r8", "ecx").
find_stack_pointer_valuetool Get the stack pointer offset (relative to function entry) at an address.
Get the stack pointer offset (relative to function entry) at an address.

        Args:
            address: Address at which to find the SP value.
flush_bufferstool Flush IDA's internal buffers to disk without saving the full database.
Flush IDA's internal buffers to disk without saving the full database.

        Writes any buffered but uncommitted byte changes to disk. Faster than
        save_database when you only need to ensure recent byte-level changes are
        persisted, not a full IDB snapshot.
generate_signaturestool Generate FLIRT-style signatures (not available in Ghidra).
Generate FLIRT-style signatures (not available in Ghidra).

        FLIRT signature generation (.sig/.pat) is an IDA-specific feature.
        Ghidra uses Function ID (FID) databases for a similar purpose, but
        FID database creation is done through the Ghidra GUI or separate
        tooling, not through the headless API.

        Consider using ``apply_function_id`` to apply existing Function ID
        databases, or ``list_data_type_archives`` to explore available type
        archives.
generate_signaturestool Generate FLIRT .sig and .pat files from the current database for library identification.
Generate FLIRT .sig and .pat files from the current database for library identification.

        Args:
            only_pat: If True, only generate .pat file (no .sig compilation).
get_address_infotool Get classification and metadata for an address.
Get classification and metadata for an address.

        Reports whether the address contains code, data, or is undefined,
        whether it has a name, cross-references, and function membership.

        Args:
            address: Address to query.
get_address_infotool Get IDA's analysis flags and metadata for an address.
Get IDA's analysis flags and metadata for an address.

        Args:
            address: Address to query.
get_analysis_problemstool List analysis problems found by Ghidra (ERROR and WARNING bookmarks).
List analysis problems found by Ghidra (ERROR and WARNING bookmarks).

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
get_analysis_problemstool List analysis problems/conflicts found by IDA.
List analysis problems/conflicts found by IDA.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
get_basic_blockstool Get basic blocks of a function (CFG nodes with successor/predecessor lists).
Get basic blocks of a function (CFG nodes with successor/predecessor lists).

        See get_cfg_edges for a compact edge list suited to graph visualization.

        Args:
            address: Address or name of the function.
get_basic_blockstool Get basic blocks of a function (CFG nodes with successor/predecessor lists).
Get basic blocks of a function (CFG nodes with successor/predecessor lists).

        See get_cfg_edges for a compact edge list suited to graph visualization.

        Args:
            address: Address or name of the function.
get_bookmarkstool List all bookmarks in the database, paginated.
List all bookmarks in the database, paginated.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
get_bookmarkstool List all bookmarks (marked positions) in the database.
List all bookmarks (marked positions) in the database.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
get_byte_flagstool Get what is at an address: instruction, data, or undefined.
Get what is at an address: instruction, data, or undefined.

        Args:
            address: Address to query.
get_byte_flagstool Get IDA internal flags for a byte (code/data/head/xref status).
Get IDA internal flags for a byte (code/data/head/xref status).

        Args:
            address: Address to query.
get_call_graphtool Get the call graph around a function (callers and callees).
Get the call graph around a function (callers and callees).

        Args:
            address: Function address.
            depth: Recursion depth (1-3).
get_call_graphtool Get the call graph for a function (callers and callees).
Get the call graph for a function (callers and callees).

        Output grows exponentially with depth. depth=1 returns direct
        callers/callees and is always safe. depth=2 on hub functions
        (malloc, printf, etc.) can return thousands of entries and may
        timeout. depth=3 is not recommended for most use cases. For
        simpler queries, get_xrefs_to (callers) or get_xrefs_from
        (callees) may suffice.

        Args:
            address: Address or name of the function.
            depth: How many levels deep to traverse (1-3, default 1).
get_cfg_edgestool Get CFG edges as (source, target) pairs (compact, for graph visualization).
Get CFG edges as (source, target) pairs (compact, for graph visualization).

        For block-level detail with predecessor/successor lists, use get_basic_blocks.

        Args:
            address: Address or name of the function.
get_cfg_edgestool Get CFG edges as (source, target) pairs (compact, for graph visualization).
Get CFG edges as (source, target) pairs (compact, for graph visualization).

        For block-level detail with predecessor/successor lists, use get_basic_blocks.

        Args:
            address: Address or name of the function.
get_colortool Get the background color of an address.
Get the background color of an address.

        Args:
            address: The address to query.
            what: What to query -- "item" or "func" (reads color at
                function entry point).
get_colortool Get the background color of an address, function, or segment.
Get the background color of an address, function, or segment.

        Args:
            address: The address to query.
            what: What to query — "item", "func", or "segm".
get_commenttool Get all comments at an address.
Get all comments at an address.
get_commenttool Read both disassembly comments (regular + repeatable) at ONE address.
Read both disassembly comments (regular + repeatable) at ONE address.

        For pseudocode comments (Hex-Rays), use get_decompiler_comments instead.
        For function-level comments, use get_function_comment.

        Args:
            address: Address or symbol name.
get_ctreetool Return the decompiler token tree for a function as a structured dict.Filesoutside text
Return the decompiler token tree for a function as a structured dict.

        Returns a structured representation of the decompiled code's
        token tree, useful for pattern matching and analysis. Output
        can be large for complex functions -- keep depth low (2-3)
        for initial exploration.

        Args:
            function_address: Address or name of the function.
            depth: Maximum tree depth to return (1-10, default 3).
get_ctreetool Return the Hex-Rays AST (ctree) for ONE function as a structured tree.
Return the Hex-Rays AST (ctree) for ONE function as a structured tree.

        Returns a structured representation of the decompiled code's
        abstract syntax tree, useful for pattern matching and analysis.
        Output can be large for complex functions — keep depth low (2-3)
        for initial exploration. For targeted searches, find_ctree_calls
        and find_ctree_patterns are more efficient than walking the full
        tree.

        Args:
            function_address: Address or name of the function.
            depth: Maximum tree depth to return (1-10, default 3).
get_database_flagstool Get database flags (kill, compress, backup, temporary).
Get database flags (kill, compress, backup, temporary).
get_database_infotool Get metadata about the currently open database.
Get metadata about the currently open database.
get_database_infotool Get database metadata (arch, bitness, file type, address range, counts).
Get database metadata (arch, bitness, file type, address range, counts).
get_database_pathstool Get file paths for the current database (input file, IDB, ID0).
Get file paths for the current database (input file, IDB, ID0).
get_decompiler_commentstool List pre-comments (visible in decompiler) for a function.
List pre-comments (visible in decompiler) for a function.

        Returns PRE comments on code units within the function body,
        which Ghidra's decompiler renders above the corresponding
        pseudocode line.

        Args:
            function_address: Address or name of the function.
get_decompiler_commentstool List Hex-Rays pseudocode comments for ONE function (pseudocode scope only).
List Hex-Rays pseudocode comments for ONE function (pseudocode scope only).

        Returns only pseudocode-view comments (set via set_decompiler_comment), not
        disassembly comments. Use get_comment or get_function_comment for those.

        Args:
            function_address: Address or name of the function.
get_elf_debug_file_directorytool Get the ELF debug file directory path.
Get the ELF debug file directory path.

        Returns the value of the ELF_DEBUG_FILE_DIRECTORY configuration
        directive, used for locating separate debug info files.
get_entry_forwardertool Get the forwarder name for an entry point.
Get the forwarder name for an entry point.

        Args:
            ordinal: Ordinal number of the entry point.
get_entry_pointstool List binary entry points (main/start/exports).
List binary entry points (main/start/exports).

        Entry points are addresses where execution may begin. For shared
        libraries, get_exports is more complete (includes all exported symbols).

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
get_entry_pointstool List binary entry points (main/DllMain/exports); for shared libs get_exports is more complete.
List binary entry points (main/DllMain/exports); for shared libs get_exports is more complete.

        Entry points are addresses where execution may begin — main, DllMain,
        WinMain, export stubs, etc. For shared libraries, get_exports is more
        complete (includes all exported symbols, not just entry points).

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
get_enum_memberstool List all members of an enum, paginated.
List all members of an enum, paginated.

        Args:
            enum_name: Name of the enum.
            offset: Pagination offset.
            limit: Maximum number of results.
get_enum_memberstool List all members of an enum.
List all members of an enum.

        Args:
            enum_name: Name of the enum.
            offset: Pagination offset.
            limit: Maximum number of results.
get_exception_handlerstool Get exception handling (try/catch) blocks for a function.
Get exception handling (try/catch) blocks for a function.

        Identifies protected regions, catch handlers, and exception types
        in C++ binaries.

        Args:
            address: Address or name of the function.
get_exportstool List all exported symbols.
List all exported symbols.

        Good starting point for analyzing shared libraries or DLLs --
        exports are the public API. Use get_xrefs_to on an export address
        to find internal callers.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
get_exportstool List all exported symbols.
List all exported symbols.

        Good starting point for analyzing shared libraries or DLLs —
        exports are the public API. Use get_xrefs_to on an export address
        to find internal callers.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
get_fileregion_eatool Get the linear address corresponding to a file offset.
Get the linear address corresponding to a file offset.

        Maps a byte offset in the original input file to its loaded
        virtual address in the database.

        Args:
            file_offset: Byte offset in the input file.
get_fileregion_offsettool Get the input file offset corresponding to a database address.
Get the input file offset corresponding to a database address.

        Maps a virtual address back to its byte offset in the original input file.

        Args:
            address: Address in the database.
get_fixupstool List relocation/fixup records in the binary.
List relocation/fixup records in the binary.

        Fixups show where the loader adjusted addresses during loading.
        Useful for understanding PIE/PIC code and import resolution.

        Args:
            start_address: Start of range (default: database start).
            end_address: End of range (default: database end).
            offset: Pagination offset.
            limit: Maximum number of results.
get_functiontool Get detailed information about a function.
Get detailed information about a function.
get_functiontool Return metadata for a function: bounds, size, flags, comments, and chunk list.
Return metadata for a function: bounds, size, flags, comments, and chunk list.

        Use this for structural information (is it a thunk? does it return? what are
        its bounds?). For pseudocode, use decompile_function. For assembly, use
        disassemble_function.

        Args:
            address: Address or symbol name of the function.
get_function_commenttool Get the comment on a function.
Get the comment on a function.
get_function_commenttool Read the function-header comment (shown above the prototype).
Read the function-header comment (shown above the prototype).

        Function-level comment, distinct from the per-instruction comments
        returned by get_comment.

        Args:
            address: Address or name of the function.
get_function_typetool Get the full type signature (prototype) of a function.
Get the full type signature (prototype) of a function.

        Returns the return type, parameters, and calling convention.

        Args:
            address: Address or name of the function.
get_function_typetool Get the full type signature (prototype) of a function.
Get the full type signature (prototype) of a function.

        Returns the return type, parameters, and calling convention.

        Args:
            address: Address or name of the function.
get_function_varstool Get typed locals and parameters via decompilation.Filesoutside text
Get typed locals and parameters via decompilation.

        For the raw stack frame layout, use get_stack_frame.

        Args:
            address: Address or name of the function.
get_function_varstool Get typed locals/params via Hex-Rays decompilation (for raw frame use get_stack_frame).
Get typed locals/params via Hex-Rays decompilation (for raw frame use get_stack_frame).

        Args:
            address: Address or name of the function.
get_hidden_rangestool List all hidden (collapsed) ranges in the database.
List all hidden (collapsed) ranges in the database.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
get_importstool List all imported functions/symbols.
List all imported functions/symbols.

        Use module_filter to narrow results to a specific library (e.g.
        "kernel32", "libc"). After finding an import address, use
        get_xrefs_to to find all code that calls it.

        Args:
            module_filter: Optional substring to filter module/library names (case-insensitive).
            offset: Pagination offset.
            limit: Maximum number of import entries.
get_importstool List all imported functions grouped by module.
List all imported functions grouped by module.

        Use module_filter to narrow results to a specific library (e.g.
        "kernel32", "libc"). After finding an import address, use
        get_xrefs_to to find all code that calls it.

        Args:
            module_filter: Optional substring to filter module names (case-insensitive).
            offset: Pagination offset (applied to the flat list of imports).
            limit: Maximum number of import entries.
get_instruction_listtool Get all instruction mnemonics recognized by the current processor.
Get all instruction mnemonics recognized by the current processor.
get_local_typetool Get detailed type information including members by name.
Get detailed type information including members by name.

        For structs/unions, returns all member details (name, type, offset,
        size). For enums, returns name-value pairs. Use list_local_types
        to browse available types.

        Args:
            name: Name of the data type.
get_local_typetool Get a local type's full declaration (members, sizes, kind) by name.
Get a local type's full declaration (members, sizes, kind) by name.

        Use list_local_types to browse available types, then this tool for
        detailed member information. To apply a type at an address, use
        apply_type_at_address.

        Args:
            name: Name of the local type.
get_microcodetool Get Hex-Rays microcode for a function at a specified maturity level.
Get Hex-Rays microcode for a function at a specified maturity level.

        Microcode is the intermediate representation used by the decompiler.
        Lower levels are closer to assembly, higher levels closer to C.
        Use MMAT_GENERATED for speed (closest to assembly), MMAT_LVARS for
        closest-to-C analysis. Complex functions may hit internal limits
        (50,000 insns/block) — try a lower maturity level if that happens.

        Args:
            function_address: Address or name of the function.
            maturity: Maturity level — one of MMAT_GENERATED, MMAT_PREOPTIMIZED,
                MMAT_LOCOPT, MMAT_CALLS, MMAT_GLBOPT1, MMAT_GLBOPT2,
                MMAT_GLBOPT3, MMAT_LVARS.
get_operand_valuetool Get the resolved value of an instruction operand.
Get the resolved value of an instruction operand.

        Uses Ghidra's analysis to resolve operand values including
        computed addresses, register-relative offsets, etc.

        Args:
            address: Address of the instruction.
            operand_index: Which operand (0-based).
get_operand_valuetool Get the resolved value of an instruction operand.
Get the resolved value of an instruction operand.

        Uses IDA's analysis to resolve operand values including
        computed addresses, register-relative offsets, etc.

        Args:
            address: Address of the instruction.
            operand_index: Which operand (0-based).
get_processor_infotool Get processor/architecture info (language, bitness, endianness, registers).
Get processor/architecture info (language, bitness, endianness, registers).
get_processor_infotool Get processor/architecture info (name, registers, bitness).
Get processor/architecture info (name, registers, bitness).
get_register_nametool Get the name of a register by its number and width.
Get the name of a register by its number and width.

        Args:
            register_number: The register number (processor-specific).
            width: Register width in bytes (0 for default pointer size).
get_register_nametool Get the name of a register by its number and width.
Get the name of a register by its number and width.

        Args:
            register_number: The register number (processor-specific).
            width: Register width in bytes (0 for default width).
get_regvartool Get the register variable definition at an address for a specific register.
Get the register variable definition at an address for a specific register.

        Args:
            function_address: Address or name of the containing function.
            address: Address to query.
            register_name: Canonical register name (e.g. "eax", "rbx").
get_segment_registerstool Get segment register values at an address.
Get segment register values at an address.

        Shows values of segment registers (CS, DS, ES, FS, GS, SS) at the
        given address. Useful for resolving TLS references and segmented
        addressing.

        Args:
            address: Address to query.
get_segmentstool List all memory segments/blocks.
List all memory segments/blocks.
get_segmentstool List all segments (memory layout, permissions, address ranges).
List all segments (memory layout, permissions, address ranges).

        Segment addresses can bound search_bytes, find_immediate, or
        get_fixups to avoid scanning the entire binary.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
get_source_line_numbertool Get the DWARF/debug source line number at an address (null if unmapped).
Get the DWARF/debug source line number at an address (null if unmapped).

        Args:
            address: Address to query.
get_source_parsertool Get the active source language parser name (e.g., "clang").
Get the active source language parser name (e.g., "clang").
get_stack_frametool Get the stack frame layout of a function (offsets, sizes, types).
Get the stack frame layout of a function (offsets, sizes, types).

        For typed variable info from decompilation, use get_function_vars.

        Args:
            address: Address or name of the function.
get_stack_frametool Get the stack frame layout of a function (offsets, sizes, no Hex-Rays needed).
Get the stack frame layout of a function (offsets, sizes, no Hex-Rays needed).

        For typed variable info from decompilation, use get_function_vars.

        Args:
            address: Address or name of the function.
get_stringstool Get defined strings from the database with optional regex filter.
Get defined strings from the database with optional regex filter.
get_stringstool List string literals IDA identified (paginated, regex-filterable).
List string literals IDA identified (paginated, regex-filterable).

        **Single mode** — use filter_pattern (or no filter) to get a
        paginated list of strings.  **Batch mode** — pass filters (a list
        of ``{pattern, min_length, limit}``) to search for multiple
        patterns in a single pass over the string list, avoiding redundant
        iteration.

        This is the recommended starting point for string-based analysis.
        After finding a string of interest, use get_xrefs_to on its
        address to find all code that references it, or use
        find_code_by_string to do both steps at once.

        Results come from IDA's cached string list, which is built once
        during initial analysis (wait_for_analysis).  If you patch bytes,
        define new data, or otherwise create/destroy strings after that,
        call rebuild_string_list first to refresh the cache.

        Args:
            min_length: Minimum string length to include.
            offset: Pagination offset.
            limit: Maximum number of results.
            filter_pattern: Optional regex to filter string values.
            filters: Batch mode — list of filters for multi-pattern search.
get_structuretool Get detailed structure info including all members.
Get detailed structure info including all members.
get_structuretool Return ONE struct/union with all members (offsets, sizes, types).
Return ONE struct/union with all members (offsets, sizes, types).

        Args:
            name: Name of the structure.
get_switch_infotool Get switch/jump table structure at a computed jump instruction.
Get switch/jump table structure at a computed jump instruction.

        Examines the instruction at the given address for a computed jump
        (indirect jump) and returns the reference targets that form the
        switch table.

        Args:
            address: Address of the switch/indirect jump instruction.
get_switch_infotool Get switch/jump table structure at an indirect jump (targets, cases, default).
Get switch/jump table structure at an indirect jump (targets, cases, default).

        Args:
            address: Address of the switch/indirect jump instruction.
get_type_infotool Get type information at an address.
Get type information at an address.
get_type_infotool Read the name and current IDA type string at an address.
Read the name and current IDA type string at an address.

        Returns empty strings if no type has been applied. Use set_type or
        apply_type_at_address to assign a type, and get_local_type to look
        up the full declaration for a named type.

        Args:
            address: Address or symbol name.
get_xrefs_fromtool Get all cross-references FROM an address.
Get all cross-references FROM an address.
get_xrefs_fromtool List all cross-references originating FROM an address (callees, data accesses).
List all cross-references originating FROM an address (callees, data accesses).

        Shows what the given address references — useful after search_bytes or
        search_text to understand what a found instruction accesses. For
        function-level callee traversal, get_call_graph is more convenient.

        Args:
            address: Source address or symbol name.
            offset: Pagination offset.
            limit: Maximum number of results.
get_xrefs_totool Get all cross-references pointing TO an address.
Get all cross-references pointing TO an address.
get_xrefs_totool List all cross-references pointing TO an address (callers, data readers, etc.).
List all cross-references pointing TO an address (callers, data readers, etc.).

        Returns both code xrefs (calls, jumps) and data xrefs (pointer references) —
        check is_code to distinguish them. For function-level caller/callee analysis,
        get_call_graph is more convenient. Use find_code_by_string to combine
        get_strings + get_xrefs_to in a single call.

        Args:
            address: Target address or symbol name.
            offset: Pagination offset.
            limit: Maximum number of results.
is_alignment_instructiontool Check whether an instruction is alignment padding (NOP sled, etc.).
Check whether an instruction is alignment padding (NOP sled, etc.).

        Args:
            address: Address of the instruction.
is_call_instructiontool Check whether the instruction at an address is a call.
Check whether the instruction at an address is a call.

        Args:
            address: Address of the instruction.
is_call_instructiontool Check whether the instruction at an address is a call.
Check whether the instruction at an address is a call.

        Args:
            address: Address of the instruction.
is_return_instructiontool Check whether the instruction at an address is a return.
Check whether the instruction at an address is a return.

        Args:
            address: Address of the instruction.
is_return_instructiontool Check whether the instruction at an address is a return.
Check whether the instruction at an address is a return.

        Args:
            address: Address of the instruction.
list_data_type_archivestool List data type archives (.gdt) available in the program's type manager.
List data type archives (.gdt) available in the program's type manager.

        Data type archives in Ghidra are similar to IDA's type libraries
        (TILs). They provide pre-defined type information for OS APIs,
        SDKs, and common libraries.
list_databasestool List all open databases with metadata (includes opening/analyzing status).
List all open databases with metadata (includes opening/analyzing status).
list_decompiler_variablestool List decompiler locals and parameters for a function.Filesoutside text
List decompiler locals and parameters for a function.

        Returns each variable's name, type, storage, and whether it is a
        parameter.  Use this before rename_decompiler_variable or
        retype_decompiler_variable to get the exact current names.

        Args:
            function_address: Address or name of the function.
list_decompiler_variablestool List Hex-Rays locals/params for ONE function (for stack layout use get_stack_frame).
List Hex-Rays locals/params for ONE function (for stack layout use get_stack_frame).

        Returns each variable's name, type, storage (stack/register), and whether it is
        a parameter. Use this before rename_decompiler_variable or
        retype_decompiler_variable to get the exact current names.

        Args:
            function_address: Address or name of the function.
list_demangled_namestool List named addresses with demangled forms (C++ only; paginated, regex-filterable).
List named addresses with demangled forms (C++ only; paginated, regex-filterable).

        For a single symbol, use demangle_name or demangle_at_address instead.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
            filter_pattern: Optional regex to filter demangled names.
list_demangled_namestool List named addresses with demangled forms (C++ only; paginated, regex-filterable).
List named addresses with demangled forms (C++ only; paginated, regex-filterable).

        **Single mode** — use filter_pattern for paginated results.
        **Batch mode** — pass filters (list of {pattern, limit}) to search
        multiple patterns in one pass. For a single symbol, use demangle_name
        or demangle_at_address instead.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
            filter_pattern: Optional regex to filter demangled names.
            filters: Batch mode — list of filters for multi-pattern search.
list_enumstool List all enums in the database, paginated.
List all enums in the database, paginated.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
list_enumstool List all enums (names, member counts, bitfield status).
List all enums (names, member counts, bitfield status).

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
list_flirt_signaturestool List FLIRT signature files currently applied to the database.
List FLIRT signature files currently applied to the database.
list_folderstool List folders and fragments in Ghidra's program tree.
List folders and fragments in Ghidra's program tree.

        Args:
            tree: Program tree name (use default "Program Tree" or check
                the listing for available trees).
            path: Directory path to list (default "/" for root).
list_folderstool List folders and items in IDA's directory tree (funcs/names/local_types/imports).
List folders and items in IDA's directory tree (funcs/names/local_types/imports).

        Args:
            tree: Which tree — "funcs", "names", "local_types", or "imports".
            path: Directory path to list (default "/" for root).
list_function_chunkstool List all address ranges (chunks) in a function body.
List all address ranges (chunks) in a function body.

        Non-contiguous functions have multiple ranges due to compiler
        optimizations like basic block reordering or hot/cold splitting.

        Args:
            address: Address or symbol name of the function.
list_function_chunkstool List all chunks (contiguous regions) of a function.
List all chunks (contiguous regions) of a function.

        Non-contiguous functions have multiple chunks due to compiler optimizations
        like basic block reordering or hot/cold splitting.

        Args:
            address: Address or symbol name of the function.
list_functionstool List all functions in the database, paginated with optional regex filter.
List all functions in the database, paginated with optional regex filter.
list_functionstool List functions with regex/flag filtering and pagination.
List functions with regex/flag filtering and pagination.

        **Single mode** — use filter_pattern/filter_type to get a paginated
        list of functions.  **Batch mode** — pass filters (a list of
        ``{pattern, filter_type, limit}``) to search for multiple patterns
        in a single pass over the function list.

        Use filter_pattern with a regex to find functions by name.
        Combine filter_type="user" to exclude library stubs and thunks
        for more targeted results.

        Args:
            offset: Starting index for pagination.
            limit: Maximum number of results.
            filter_pattern: Optional regex pattern to filter function names.
            filter_type: Optional filter by function type — "thunk" (thunks only),
                "library" (library functions), "noreturn" (non-returning),
                "user" (exclude library and thunk functions).
            filters: Batch mode — list of filters for multi-pattern search.
list_local_typestool List locally defined data types.
List locally defined data types.
list_local_typestool List Local Types (C typedefs/enums/structs/funcs from parse_type_declaration).
List Local Types (C typedefs/enums/structs/funcs from parse_type_declaration).

        Returns structs, unions, enums, and typedefs from the local type
        library. Large databases may have hundreds or thousands of types —
        use pagination or get_local_type to look up specific types by name.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
list_namestool List all named locations, paginated with optional regex filter.
List all named locations, paginated with optional regex filter.
list_namestool List every named location (functions + globals + data labels), regex-filterable.
List every named location (functions + globals + data labels), regex-filterable.

        **Single mode** — use filter_pattern to get a paginated list of
        names.  **Batch mode** — pass filters (a list of ``{pattern,
        limit}``) to search for multiple patterns in a single pass.

        Large binaries can have thousands of names. Use filter_pattern
        to narrow results with a regex. For function-specific name searches,
        list_functions with filter_pattern may be more targeted.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
            filter_pattern: Optional regex to filter names.
            filters: Batch mode — list of filters for multi-pattern search.
list_regvarstool List all local variables in a function via the decompiler.Filesoutside text
List all local variables in a function via the decompiler.

        Returns variables from the decompiler's HighFunction, including
        registers, stack variables, and parameters.

        Args:
            function_address: Address or name of the function.
list_regvarstool List all register variable definitions in a function.
List all register variable definitions in a function.

        Iterates function instructions and collects all register-to-name
        mappings defined within the function.

        Args:
            function_address: Address or name of the function.
list_snapshotstool List database snapshots.
List database snapshots.

        Ghidra uses project-level file versioning rather than in-database
        snapshots. This tool returns an empty list. Use the Ghidra project
        manager for version history.
list_snapshotstool List all database snapshots.
List all database snapshots.

        Returns the snapshot tree flattened into a list with depth
        information indicating parent-child relationships.
list_structurestool List all structures and unions in the database.
List all structures and unions in the database.
list_structurestool List structs/unions (names, sizes, member counts).
List structs/unions (names, sizes, member counts).

        For full member details, use get_structure. For type-library types (structs
        defined via parse_type_declaration), use list_local_types instead.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
list_switchestool Find all switch/jump tables by scanning for computed jump instructions.
Find all switch/jump tables by scanning for computed jump instructions.

        Iterates all functions and finds instructions with computed jump
        flow types. May be slow on large binaries.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
list_switchestool Find all switch/jump tables in the database (may be slow on large binaries).
Find all switch/jump tables in the database (may be slow on large binaries).

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
list_targetstool List available targets (processors, loaders, languages, etc.).
List available targets (processors, loaders, languages, etc.).
list_type_librariestool List all loaded type information libraries (TILs).
List all loaded type information libraries (TILs).
load_additional_binarytool Load a binary file into a new auto-created segment (firmware, overlays, etc.).Filesoutside text
Load a binary file into a new auto-created segment (firmware, overlays, etc.).

        Unlike load_bytes_from_file (which overwrites bytes in an existing
        segment), this creates the segment automatically.

        Args:
            file_path: Absolute path to the binary file to load.
            load_address: Address where the file should be loaded (hex or
                          decimal).  A new segment will be created here.
                          Should be 16-byte (paragraph) aligned for clean
                          segment boundaries; non-aligned addresses are
                          accepted but may produce unexpected segment starts.
            file_offset: Offset within the file to start reading from.
            size: Number of bytes to load (0 = rest of file from offset).
load_bytes_from_filetool Overwrite bytes in an existing segment from a file (segment must already exist).Filesoutside text
Overwrite bytes in an existing segment from a file (segment must already exist).

        Args:
            file_path: Absolute path to the file to load bytes from.
            target_address: Address in the database to load bytes to.
            file_offset: Offset within the file to start reading from.
            size: Number of bytes to load (0 = rest of file from offset).
load_bytes_from_memorytool Write hex-encoded bytes directly into an existing memory block.
Write hex-encoded bytes directly into an existing memory block.

        Args:
            target_address: Address in the database to write bytes to.
            data: Hex-encoded bytes to write (e.g. "90909090" for NOPs,
                or "90 90 90 90" with spaces).
load_bytes_from_memorytool Write hex-encoded bytes directly into an existing segment.
Write hex-encoded bytes directly into an existing segment.

        For single-instruction patches, patch_bytes is usually more
        convenient (creates an undo point automatically).

        Args:
            target_address: Address in the database to load bytes to.
            data: Hex-encoded bytes to load (e.g. "90909090" for NOPs).
load_ids_moduletool Load and apply an IDS (ID Signature) file.
Load and apply an IDS (ID Signature) file.

        IDS files contain type information for known library functions.
        If the program imports from a module matching the IDS filename,
        only those imports are affected. Otherwise any function may be updated.

        Args:
            filename: Name of the IDS file to apply.
load_type_librarytool Load a TIL (type library) for OS/SDK types (e.g., gnulnx_x64, mssdk_win10).
Load a TIL (type library) for OS/SDK types (e.g., gnulnx_x64, mssdk_win10).

        Args:
            til_name: Name of the type library (without extension).
make_arraytool Mark a contiguous run of bytes as an array.
Mark a contiguous run of bytes as an array.

        Args:
            address: Address of the array start.
            element_size: Size of each element in bytes (1, 2, 4, or 8).
            count: Number of elements in the array.
make_arraytool Mark a contiguous run of bytes as an array of an already-defined typed element.
Mark a contiguous run of bytes as an array of an already-defined typed element.

        Args:
            address: Address of the array start.
            element_size: Size of each element in bytes (1, 2, 4, or 8).
            count: Number of elements in the array.
make_codetool Force bytes to be disassembled as code (single instruction, no function).
Force bytes to be disassembled as code (single instruction, no function).

        Unlike create_function, this just marks the bytes as code without
        creating a function boundary. Useful for fixing misidentified data
        or extending analysis into unreached code.

        Args:
            address: Address to convert to code.
make_codetool Force bytes to be disassembled as code (single instruction, no function).
Force bytes to be disassembled as code (single instruction, no function).

        Unlike create_function, this just marks the bytes as code without
        creating a function boundary. Useful for fixing misidentified data
        or extending analysis into unreached code.

        Args:
            address: Address to convert to code.
make_datatool Mark bytes as a primitive data type (byte/word/dword/qword/float/double).
Mark bytes as a primitive data type (byte/word/dword/qword/float/double).

        Args:
            address: Address to define.
            data_type: Data type -- "byte", "word" (16-bit), "dword" (32-bit),
                "qword" (64-bit), "float" (32-bit), or "double" (64-bit).
            count: Number of elements (>1 creates an array).
make_datatool Mark bytes as a primitive data type (byte/word/dword/qword/float/double).
Mark bytes as a primitive data type (byte/word/dword/qword/float/double).

        Args:
            address: Address to define.
            data_type: Data type — "byte", "word" (16-bit), "dword" (32-bit),
                "qword" (64-bit), "float" (32-bit), or "double" (64-bit).
            count: Number of elements (>1 creates an array).
make_stringtool Mark bytes as a string (auto-detect length if omitted).
Mark bytes as a string (auto-detect length if omitted).

        Args:
            address: Address of the string.
            length: String length in bytes (0 for auto-detect null-terminated).
            string_type: String encoding -- "c" (ASCII/UTF-8), "utf16" (UTF-16),
                "utf32" (UTF-32).
make_stringtool Mark bytes as a C/Pascal/Unicode string (auto-sized if length omitted).
Mark bytes as a C/Pascal/Unicode string (auto-sized if length omitted).

        Args:
            address: Address of the string.
            length: String length in bytes (0 for auto-detect null-terminated).
            string_type: String encoding — "c" (ASCII), "utf16" (wide), "utf32".
move_segmenttool Relocate ONE segment to a new start address and fix up its references.
Relocate ONE segment to a new start address and fix up its references.

        Relocates the entire segment and updates all references. For a
        whole-program shift use rebase_program.

        Args:
            address: Any address within the segment to move.
            new_start: New starting address for the segment.
parse_source_declarationstool Parse C source declarations and import types into the program's type manager.
Parse C source declarations and import types into the program's type manager.

        Uses Ghidra's CParser to parse C type declarations. Parsed types
        are added to the program's data type manager and become available
        for application at addresses.

        Note: Ghidra's built-in parser supports C declarations only.
        The language parameter is accepted for API compatibility but
        currently only "c" is supported.

        Args:
            source: C source code string containing type declarations
                (e.g. "typedef int DWORD;" or "struct point { int x; int y; };").
            language: Source language (only "c" is currently supported).
parse_source_declarationstool Parse C/C++/ObjC/Swift/Go source declarations and import types into the database.
Parse C/C++/ObjC/Swift/Go source declarations and import types into the database.

        Parsed types are added to the current type library and become
        available for type application.

        Args:
            source: Source code string, or a file path if is_path=true.
            language: Source language — "c", "cpp"/"c++", "objc", "swift", "go".
                      Ignored if parser_name is specified.
            is_path: If true, source is interpreted as a file path.
            parser_name: Use a specific parser by name instead of auto-selecting
                         by language. Leave empty to auto-select.

        Returns:
            error_count: Number of parse errors (0 = fully clean).
            status: "parsed_ok" or "parsed_with_errors".
parse_type_declarationtool Parse a C type declaration and add it to the program's type library.
Parse a C type declaration and add it to the program's type library.

        Args:
            declaration: C declaration (e.g. "typedef int DWORD;" or
                         "struct point { int x; int y; };").
parse_type_declarationtool Parse a C declaration (struct/typedef/enum/func) and register it as a Local Type.
Parse a C declaration (struct/typedef/enum/func) and register it as a Local Type.

        Named types (structs, enums, typedefs) are saved to the database.
        Anonymous types are parsed but not saved. May merge with existing
        types if the name already exists. After adding a type, use
        apply_type_at_address to apply it at specific addresses.

        Args:
            declaration: C type declaration (e.g. "struct foo { int x; char y; };").
patch_asmtool Assemble and patch an instruction into the database in one step.
Assemble and patch an instruction into the database in one step.

        Combines assemble_instruction + byte patching within a transaction.

        Args:
            address: Address where the instruction should be assembled and patched.
            instruction: Assembly instruction text (e.g. "NOP", "MOV EAX,1").
patch_asmtool Assemble and patch an instruction into the database in one step.
Assemble and patch an instruction into the database in one step.

        Combines assemble_instruction + patch_bytes; creates an undo point.

        Args:
            address: Address where the instruction should be assembled and patched.
            instruction: Assembly instruction text (e.g. "nop", "mov eax, 1").
patch_bytestool Overwrite raw bytes in memory with a hex string (destructive).
Overwrite raw bytes in memory with a hex string (destructive).

        Args:
            address: Address to patch.
            hex_bytes: Hex string of bytes to write (e.g. "90 90 90" or "909090").
patch_bytestool Overwrite raw bytes in the IDB with a hex string (atomic, destructive).
Overwrite raw bytes in the IDB with a hex string (atomic, destructive).

        Args:
            address: Address to patch.
            hex_bytes: Hex string of bytes to write (e.g. "90 90 90" or "909090").
read_bytestool Read raw bytes from the database.
Read raw bytes from the database.

        Args:
            address: Start address.
            size: Number of bytes to read (max 4096).
read_bytestool Read raw bytes from the database at a given address.
Read raw bytes from the database at a given address.

        Args:
            address: Address to read from (hex string or symbol name).
            size: Number of bytes to read (max 4096).
read_pointer_tabletool Read an array of pointers (vtable, dispatch table, etc.) with optional dereference.
Read an array of pointers (vtable, dispatch table, etc.) with optional dereference.

        Uses database bitness for pointer size (4 or 8 bytes). When
        dereference is True, resolves names and auto-detects strings.

        Args:
            address: Start address of the pointer table.
            count: Number of pointers to read (max 4096).
            dereference: Resolve names and strings at target addresses.
reanalyze_rangetool Reanalyze an address range by running Ghidra auto-analysis on it.Files
Reanalyze an address range by running Ghidra auto-analysis on it.

        Call after patching bytes, changing types, or creating new code
        to force Ghidra to re-analyze the affected range.

        Args:
            start_address: Start of the range.
            end_address: End of the range (exclusive).
reanalyze_rangetool Reanalyze an address range synchronously (blocks until done).
Reanalyze an address range synchronously (blocks until done).

        Call after patching bytes, changing types, or creating new segments
        to force IDA to re-disassemble and re-analyze the affected range.

        Args:
            start_address: Start of the range.
            end_address: End of the range (exclusive).
rebase_programtool Shift all addresses by a signed delta (destructive, global).
Shift all addresses by a signed delta (destructive, global).

        Computes a new image base by adding the delta to the current base
        and calls ``program.setImageBase()``.

        Args:
            delta: Address delta to shift by (e.g. "0x1000" to shift forward,
                "-0x1000" to shift back).
rebase_programtool Shift EVERY address by a delta (destructive, global).
Shift EVERY address by a delta (destructive, global).

        Args:
            delta: Address delta to shift by (e.g. "0x1000" to shift forward,
                "-0x1000" to shift back).
rebuild_string_listtool Refresh the cached string list after patches or new data definitions.
Refresh the cached string list after patches or new data definitions.

        Call this after patching bytes, defining new data, or any other
        modification that may create or destroy strings.  The string list
        is cached — read-only tools like get_strings use the cached
        version automatically, but the cache is NOT updated on mutation.
redotool Redo the last undone database modification.Files
Redo the last undone database modification.
redotool Redo the last undone database modification.
Redo the last undone database modification.
reload_filetool Re-read bytes from the original input file, OVERWRITING any patches.
Re-read bytes from the original input file, OVERWRITING any patches.

        Keeps names, comments, and segmentation intact — only byte values are
        refreshed. Useful after the original binary has been modified externally.

        Args:
            is_remote: Whether the file is on a remote debugger server.
remove_function_tailtool Remove a tail (non-contiguous range) from a function body.
Remove a tail (non-contiguous range) from a function body.

        Removes the address range containing ``tail_address`` from the
        function body.  The entry-point range cannot be removed.

        Args:
            function_address: Address or name of the owning function.
            tail_address: Any address within the tail range to remove.
remove_function_tailtool Remove a tail (non-contiguous chunk) from a function.
Remove a tail (non-contiguous chunk) from a function.

        Args:
            function_address: Address or name of the owning function.
            tail_address: Any address within the tail chunk to remove.
rename_addresstool Rename a label/symbol at an address.
Rename a label/symbol at an address.
rename_addresstool Rename ONE label (data, jump target, any non-function address).
Rename ONE label (data, jump target, any non-function address).

        Works on any address, unlike rename_function which requires a function start.
        Use rename_function when renaming a function — it validates the function exists.
        Pass empty string to remove an existing name.

        Args:
            address: Address or current name to rename.
            new_name: New name to assign. Pass empty string to remove the name.
rename_decompiler_variabletool Rename a decompiler local variable or parameter.Filesoutside text
Rename a decompiler local variable or parameter.

        Args:
            function_address: Address or name of the function.
            old_name: Current variable name in the decompiler output.
            new_name: New name to assign to the variable.
rename_decompiler_variabletool Rename ONE Hex-Rays local or parameter (pseudocode scope; not globals or regvars).
Rename ONE Hex-Rays local or parameter (pseudocode scope; not globals or regvars).

        Args:
            function_address: Address or name of the function.
            old_name: Current variable name in the pseudocode.
            new_name: New name to assign to the variable.
rename_entry_pointtool Rename an entry point's symbol at an address.
Rename an entry point's symbol at an address.

        Args:
            address: Address of the entry point.
            name: New name for the entry point.
rename_entry_pointtool Rename an entry point's symbol by ordinal.
Rename an entry point's symbol by ordinal.

        For at-address rename use rename_function or rename_address.

        Args:
            ordinal: Ordinal number of the entry point.
            name: New name for the entry point.
rename_enumtool Rename an enum.
Rename an enum.

        Args:
            old_name: Current name of the enum.
            new_name: New name for the enum.
rename_enumtool Rename an enum.
Rename an enum.

        Args:
            old_name: Current name of the enum.
            new_name: New name for the enum.
rename_enum_membertool Rename an enum member by its value.
Rename an enum member by its value.

        Args:
            enum_name: Name of the enum.
            value: Integer value of the member to rename.
            new_name: New name for the member.
rename_enum_membertool Rename an enum member.
Rename an enum member.

        Args:
            enum_name: Name of the enum.
            value: Integer value of the member to rename.
            new_name: New name for the member.
rename_functiontool Rename a function.
Rename a function.
rename_functiontool Rename ONE function by its address (propagates through xrefs).
Rename ONE function by its address (propagates through xrefs).

        Propagates the new name through decompilation and xref display
        immediately. Use rename_address for non-function labels (globals,
        data). Use rename_decompiler_variable to rename local variables
        within a function. For many renames in one request, see the `batch`
        meta-tool.

        Args:
            address: Address or current name of the function.
            new_name: New name to assign.
rename_regvartool Rename a local variable in the decompiler view.Filesoutside text
Rename a local variable in the decompiler view.

        Finds the variable by its current name in the decompiled function
        and renames it via HighFunctionDBUtil.

        Args:
            function_address: Address or name of the function.
            old_name: Current variable name.
            new_name: New variable name.
rename_regvartool Rename a regvar alias in the disassembly view (register-scoped, per-range).
Rename a regvar alias in the disassembly view (register-scoped, per-range).

        Args:
            function_address: Address or name of the containing function.
            address: Any address within the regvar's range.
            register_name: Canonical register name (e.g. "eax", "rbx").
            new_name: New user-defined name.
rename_struct_membertool Rename a member of a structure.
Rename a member of a structure.

        Args:
            struct_name: Name of the structure.
            old_name: Current member name.
            new_name: New member name.
rename_struct_membertool Rename a member of a structure.
Rename a member of a structure.

        Args:
            struct_name: Name of the structure.
            old_name: Current name of the member.
            new_name: New name for the member.
restore_snapshottool Revert the database to a prior snapshot (destroys unsaved changes).Filesoutside text
Revert the database to a prior snapshot (destroys unsaved changes).

        Replaces the current database state with the snapshot state.
        The current state is lost unless a snapshot was taken beforehand.

        Works by saving the current database, closing it, and reopening
        the snapshot's .i64 file — the only reliable approach in headless
        idalib mode.

        Args:
            snapshot_id: ID of the snapshot to restore (string from list_snapshots).
retype_decompiler_variabletool Retype a decompiler local variable or parameter.Filesoutside text
Retype a decompiler local variable or parameter.

        Args:
            function_address: Address or name of the function.
            variable_name: Name of the variable to retype.
            new_type: C type string to apply (e.g. "int *", "struct foo *").
retype_decompiler_variabletool Retype ONE Hex-Rays local or parameter; for the function prototype use set_function_type.
Retype ONE Hex-Rays local or parameter; for the function prototype use set_function_type.

        Args:
            function_address: Address or name of the function.
            variable_name: Name of the variable to retype.
            new_type: C type string to apply (e.g. "int *", "struct foo *").
retype_struct_membertool Change the type of a structure member.
Change the type of a structure member.
retype_struct_membertool Change the type of a structure member.
Change the type of a structure member.

        Args:
            struct_name: Name of the structure.
            member_name: Name of the member to retype.
            type_str: C type string (e.g. "int", "char *", "struct foo").
save_databasetool Save the current database to disk (may take minutes for large DBs).
Save the current database to disk (may take minutes for large DBs).

            Specify *database* when multiple are open. Fails if the DB is
            not attached to the current session unless force=True. Progress
            notifications are sent every 5s during long saves.
save_databasetool Save the current database to disk.Files
Save the current database to disk.

        Args:
            outfile: Not supported for Ghidra (raises an error if provided).
            flags: Ignored (IDA-specific).
save_databasetool Write the current IDB to disk and keep it open.
Write the current IDB to disk and keep it open.

        Args:
            outfile: Output file path. Empty string saves to the current path.
            flags: Database flags (-1 keeps current flags).
search_bytestool Search for a byte pattern in the database.
Search for a byte pattern in the database.

        Pattern is a hex string, e.g. "48 8B" or "488B". Wildcards not supported.
search_bytestool Scan raw bytes across the binary for a hex/wildcard pattern.
Scan raw bytes across the binary for a hex/wildcard pattern.

        Supports IDA-style hex patterns with wildcards:
        e.g. "48 8B ?? 90" or "488B??90"

        Performance: scans linearly from start_address through the binary.
        On large binaries, this can be slow when searching from the beginning.
        Prefer narrowing the search with start_address when possible, or use
        get_strings + get_xrefs_to for string-based lookups instead.

        Args:
            pattern: Hex byte pattern (spaces optional, ?? for wildcards).
            start_address: Address to start searching from (default: beginning).
            max_results: Maximum matches to return.
search_texttool Search disassembly text (mnemonics + operands) for a regex pattern.
Search disassembly text (mnemonics + operands) for a regex pattern.
search_texttool Grep rendered disassembly text (mnemonics + operands).
Grep rendered disassembly text (mnemonics + operands).

        This searches the disassembly text representation, NOT string literals
        in the binary data. To find string constants (like "hello world"), use
        get_strings instead.

        Performance: scans linearly through all instructions from the start
        of the database. On large binaries, prefer get_strings + get_xrefs_to
        to locate code referencing known strings.

        Args:
            text: Text to search for in disassembly lines.
            max_results: Maximum matches to return.
set_bookmarktool Set a bookmark at an address.
Set a bookmark at an address.

        Args:
            address: Address to bookmark.
            description: Description for the bookmark.
            category: Bookmark category (e.g. "Analysis", "Suspicious", "TODO").
set_bookmarktool Set a bookmark (marked position) at an address.
Set a bookmark (marked position) at an address.

        Args:
            address: Address to bookmark.
            description: Description for the bookmark.
            slot: Bookmark slot (1-1024, or -1 to auto-assign the first free slot).
set_colortool Set the background color of an address or function.
Set the background color of an address or function.

        Ghidra stores per-address colors as an integer property on code
        units.  In headless mode some rendering-level coloring is
        unavailable; this sets the ``Color`` property that the Ghidra UI
        reads when available.

        Args:
            address: The address to colorize.
            color: Color as hex RGB string (e.g. "#FF0000" for red).
                Use empty string "" to remove color.
            what: What to color -- "item" (single address) or "func"
                (all addresses in the containing function).
set_colortool Set the background color of an address, function, or segment.
Set the background color of an address, function, or segment.

        Args:
            address: The address to colorize.
            color: Color as hex RGB string (e.g. "FF0000" for red, "00FF00" for green).
                Use empty string "" to remove color.
            what: What to color — "item" (single address), "func" (entire function),
                or "segm" (entire segment).
set_commenttool Set a comment at an address.
Set a comment at an address.

        Args:
            address: Target address.
            comment: Comment text (empty string to clear).
            comment_type: One of "eol", "pre", "post", "plate", "repeatable".
set_commenttool Set a disassembly-view comment at an instruction or data address.
Set a disassembly-view comment at an instruction or data address.

        Repeatable comments propagate to all xref sites. For pseudocode
        annotations use set_decompiler_comment; for whole-function comments
        use set_function_comment; to append without overwriting use
        append_comment.

        Args:
            address: Address or symbol name.
            comment: Comment text to set. Pass empty string to delete.
            repeatable: If True, set as a repeatable comment (propagates to xref sites).
set_database_flagtool Set or clear a database flag (kill/compress/backup/temporary).
Set or clear a database flag (kill/compress/backup/temporary).

        Args:
            flag: Flag name — one of "kill", "compress", "backup", "temporary".
            value: True to set, False to clear.
set_decompiler_commenttool Set a pre-comment at an address (visible in decompiler output).
Set a pre-comment at an address (visible in decompiler output).

        This sets a PRE comment, which Ghidra's decompiler renders
        above the corresponding line in the pseudocode.
set_decompiler_commenttool Attach a comment to a pseudocode line (Hex-Rays view only).
Attach a comment to a pseudocode line (Hex-Rays view only).

        Appears in decompilation output only, not in the disassembly view.
        To annotate the disassembly instead, use set_comment. Pass empty
        string to delete an existing comment.

        Args:
            address: Instruction address where the comment should appear.
            function_address: Address or name of the containing function (auto-detected if empty).
            comment: Comment text to set (empty string to delete).
set_entry_forwardertool Set a forwarder name for an entry point.
Set a forwarder name for an entry point.

        Forwarders redirect an entry point to another module's export
        (e.g. "NTDLL.RtlAllocateHeap").

        Args:
            ordinal: Ordinal number of the entry point.
            name: Forwarder name string.
set_enum_member_commenttool Set a comment on an enum member.
Set a comment on an enum member.

        Args:
            enum_name: Name of the enum.
            value: Integer value of the member.
            comment: Comment text.
set_function_boundstool Change the end address of a function to fix incorrect IDA-detected boundaries.
Change the end address of a function to fix incorrect IDA-detected boundaries.

        The new_end address is exclusive (points one byte past the last instruction).
        Use get_function to check current bounds before changing them.

        Args:
            address: Address or name of the function.
            new_end: New end address (exclusive — first byte after the function).
set_function_calling_conventiontool Change the calling convention of a function.
Change the calling convention of a function.

        Args:
            address: Address or name of the function.
            convention: Calling convention name (e.g. "__cdecl", "__stdcall",
                "__fastcall", "__thiscall"). Use get_function_type to see
                the current convention.
set_function_calling_conventiontool Change the calling convention of a function.
Change the calling convention of a function.

        Args:
            address: Address or name of the function.
            convention: Calling convention — "cdecl", "stdcall", "fastcall", "thiscall", "pascal".
set_function_commenttool Set a comment on a function header.
Set a comment on a function header.
set_function_commenttool Set the function-header comment (shown above the prototype).
Set the function-header comment (shown above the prototype).

        Defaults to repeatable=True so the comment appears at every call site.
        Use set_comment for per-instruction annotations.

        Args:
            address: Address or name of the function.
            comment: Comment text to set. Pass empty string to delete.
            repeatable: If True, the comment appears at call sites too (default True).
set_function_flagstool Set or clear function flags (library, thunk, noreturn, inline).
Set or clear function flags (library, thunk, noreturn, inline).

        Only provided flags are changed; others are left as-is.

        Args:
            address: Address or name of the function.
            library: Mark/unmark as library function (tag only, no behavior change).
            thunk: Mark/unmark as thunk (wrapper) function.
            noreturn: Mark/unmark as non-returning.
            inline: Mark/unmark as inline.
set_function_flagstool Set or clear function flags (library, thunk, noreturn, hidden).
Set or clear function flags (library, thunk, noreturn, hidden).

        Only provided flags are changed; others are left as-is.

        Args:
            address: Address or name of the function.
            library: Mark/unmark as library function.
            thunk: Mark/unmark as thunk (wrapper) function.
            noreturn: Mark/unmark as non-returning.
            hidden: Mark/unmark as hidden (collapsed in listing).
set_function_typetool Set a function's full C prototype (return + args + calling convention).
Set a function's full C prototype (return + args + calling convention).

        Parses a C function declaration and applies it to the function.

        Args:
            address: Address or name of the function.
            type_string: C function declaration, e.g. "int foo(int a, char *b)".
set_function_typetool Set a function's full C prototype (return + args + calling convention).
Set a function's full C prototype (return + args + calling convention).

        Args:
            address: Address or name of the function.
            type_string: C function declaration, e.g. "int __cdecl foo(int a, char *b)".
set_import_nametool Set the name of an import entry in IDA's import module table.
Set the name of an import entry in IDA's import module table.

        Low-level IDA API for annotating import stubs. The modnode is an
        internal IDA module node index (0-based, from
        ida_nalt.get_import_module_qty()), not obtainable from get_imports.
        In most cases, rename_address or rename_function is sufficient to
        rename an import stub without needing the module node.

        Args:
            modnode: Module node index (0-based internal IDA identifier).
            address: Linear address of the import entry.
            name: Name to set for the import.
set_import_ordinaltool Set the ordinal of an import entry in IDA's import module table.
Set the ordinal of an import entry in IDA's import module table.

        Low-level IDA API. The modnode is an internal IDA module node index
        (0-based), not directly obtainable from get_imports output. See
        set_import_name for details.

        Args:
            modnode: Module node index (0-based internal IDA identifier).
            address: Linear address of the import entry.
            ordinal: Ordinal number to set.
set_library_itemtool Mark or unmark an address as a library item.
Mark or unmark an address as a library item.

        Library items are shown differently in IDA and excluded from
        certain analysis outputs. Useful for marking known library code.

        Args:
            address: Address to mark.
            is_library: True to mark as library item, False to clear.
set_operand_enumtool Display a numeric operand as an enum member name.
Display a numeric operand as an enum member name.

        For numeric-base changes (hex/dec/bin) use set_operand_format.

        Args:
            address: Instruction address.
            operand_num: Operand index (0-based).
            enum_name: Name of the enum to apply.
set_operand_formattool Change an operand's numeric display format (hex/dec/bin/oct/char).
Change an operand's numeric display format (hex/dec/bin/oct/char).

        For instructions, applies a display equate (Ghidra's equivalent of
        IDA's operand format change).  For data, sets the format setting
        directly on the code unit.

        Args:
            address: Instruction address.
            operand_num: Operand index (0-based).
            display_format: Display format -- "hex", "decimal", "binary", "octal",
                or "char".
set_operand_formattool Change an operand's numeric base (hex/dec/bin/oct/char).
Change an operand's numeric base (hex/dec/bin/oct/char).

        Args:
            address: Instruction address.
            operand_num: Operand index (0-based).
            display_format: Display format — "hex", "decimal", "binary", "octal", or "char".
set_operand_offsettool Reinterpret a numeric operand as a flat pointer/offset (creates an xref).
Reinterpret a numeric operand as a flat pointer/offset (creates an xref).

        Makes IDA treat the operand value as a pointer/offset, creating a
        cross-reference to the target address.

        Args:
            address: Instruction address.
            operand_num: Operand index (0-based).
            base: Base address for the offset calculation (0 for flat).
set_operand_struct_offsettool Reinterpret an operand as a struct field offset (creates the struct xref).
Reinterpret an operand as a struct field offset (creates the struct xref).

        Makes IDA display the operand as a struct member access (e.g. struc.field).

        Args:
            address: Instruction address.
            operand_num: Operand index (0-based).
            struct_name: Name of the structure.
set_regvar_commenttool Set the comment on a register variable definition.
Set the comment on a register variable definition.

        Args:
            function_address: Address or name of the containing function.
            address: Any address within the regvar's range.
            register_name: Canonical register name (e.g. "eax", "rbx").
            comment: New comment text.
set_segment_bitnesstool Change the addressing mode of a segment (16/32/64-bit).
Change the addressing mode of a segment (16/32/64-bit).

        Args:
            address: Any address within the segment.
            bitness: Address size — 0 for 16-bit, 1 for 32-bit, 2 for 64-bit.
set_segment_classtool Change the class of a segment (CODE/DATA/BSS/STACK/etc.).
Change the class of a segment (CODE/DATA/BSS/STACK/etc.).

        Args:
            address: Any address within the segment.
            segment_class: New class — "CODE", "DATA", "BSS", "STACK", etc.
set_segment_nametool Rename a memory block.
Rename a memory block.

        Args:
            address: Any address within the memory block.
            new_name: New name for the block.
set_segment_nametool Rename a segment.
Rename a segment.

        Args:
            address: Any address within the segment.
            new_name: New name for the segment.
set_segment_permissionstool Change memory block permissions (e.g., RWX, R-X, RW-).
Change memory block permissions (e.g., RWX, R-X, RW-).

        Args:
            address: Any address within the memory block.
            permissions: Permission string like "RWX", "R-X", "RW-".
set_segment_permissionstool Change segment permissions (e.g., RWX, R-X, RW-).
Change segment permissions (e.g., RWX, R-X, RW-).

        Args:
            address: Any address within the segment.
            permissions: Permission string like "RWX", "R-X", "RW-".
set_segment_registertool Set a segment register value starting at an address (e.g., fs/gs for TLS).
Set a segment register value starting at an address (e.g., fs/gs for TLS).

        Args:
            start_address: Address where the new register value starts.
            register: Register name (e.g. "fs", "gs", "ds").
            value: Value to set for the register.
set_source_line_numbertool Set the source file line number for an address.
Set the source file line number for an address.

        Useful for adding debug info or correlating binary addresses
        with source positions.

        Args:
            address: Address to annotate.
            line_number: Source line number (1-based).
set_struct_member_commenttool Set a comment on a structure member.
Set a comment on a structure member.

        Args:
            struct_name: Name of the structure.
            member_name: Name of the member.
            comment: Comment text.
            repeatable: If True, set as repeatable comment.
set_tail_ownertool Reassign a function tail chunk to a different owning function.
Reassign a function tail chunk to a different owning function.

        Args:
            tail_address: Any address within the tail chunk.
            new_owner_address: Address or name of the new owning function.
set_typetool Apply a data type at an address.
Apply a data type at an address.

        Args:
            address: Target address.
            type_string: C type string (e.g. "int", "char *", "struct foo").
set_typetool Apply an inline C type string at a data address.
Apply an inline C type string at a data address.

        Use this for inline types and function pointer declarations. For types
        already defined in the local type library (structs, enums, typedefs),
        use apply_type_at_address instead — it resolves by name and is safer
        for complex types. For function prototypes, prefer set_function_type.

        Args:
            address: Address or symbol name.
            type_string: C type declaration (e.g. "int (*)(void *, int)", "unsigned int").
take_snapshottool Save the current program state to the Ghidra project.Files
Save the current program state to the Ghidra project.

        Ghidra does not have IDA-style in-database snapshots. This tool
        saves the program to the project file, which acts as a checkpoint.

        Args:
            description: Optional description (informational only).
take_snapshottool Create a persistent restore point (survives sessions; stronger than undo).
Create a persistent restore point (survives sessions; stronger than undo).

        Creates a point-in-time snapshot that can be restored later.
        Unlike undo, snapshots persist across sessions and can capture
        the full database state at a specific moment.

        Args:
            description: Optional description for the snapshot.
undefinetool Revert code/data definitions back to raw undefined bytes (byte values unchanged).
Revert code/data definitions back to raw undefined bytes (byte values unchanged).

        Args:
            address: Address to undefine.
            size: Number of bytes to undefine.
undefinetool Revert code/data definitions back to raw undefined bytes (byte values unchanged).
Revert code/data definitions back to raw undefined bytes (byte values unchanged).

        Args:
            address: Address to undefine.
            size: Number of bytes to undefine.
undotool Undo the last database modification.Files
Undo the last database modification.
undotool Undo the last database modification.
Undo the last database modification.
wait_for_analysistool Block until database(s) finish opening and optional auto-analysis.
Block until database(s) finish opening and optional auto-analysis.

            **Single:** pass ``database`` to wait for one DB.
            **Multi:** pass ``databases`` list — returns when **at least one**
            is ready. Work on the ready one, call again for the rest.

            While analysis runs, the backend thread is blocked — tool calls queue.

            Args:
                database: Single database ID to wait for.
                databases: List of database IDs (returns when first is ready).
wait_for_analysistool Run Ghidra's auto-analysis and wait for it to complete.
Run Ghidra's auto-analysis and wait for it to complete.

        Call this after opening a database or making changes (patches, type
        applications) to ensure the program is fully analyzed before querying.
        Returns a summary of database statistics after analysis finishes.
wait_for_analysistool Wait for IDA's auto-analysis to complete.
Wait for IDA's auto-analysis to complete.

        Call this after making changes (patches, type applications) to ensure
        the database is fully analyzed before querying.  Returns a summary of
        database statistics after analysis finishes so you can sanity-check
        results without extra round trips.

Text the model reads (696)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
close_database tool
Close a database and terminate its worker process.

            Specify *database* when multiple are open. Fails if the DB is
            not attached to the current session unless force=True. When other
            sessions still use the DB, detaches this session but keeps the
            worker alive.
(name computed at run time) tool
save_database tool
Save the current database to disk (may take minutes for large DBs).

            Specify *database* when multiple are open. Fails if the DB is
            not attached to the current session unless force=True. Progress
            notifications are sent every 5s during long saves.
(name computed at run time) tool
list_databases tool
List all open databases with metadata (includes opening/analyzing status).
(name computed at run time) tool
wait_for_analysis tool
Block until database(s) finish opening and optional auto-analysis.

            **Single:** pass ``database`` to wait for one DB.
            **Multi:** pass ``databases`` list — returns when **at least one**
            is ready. Work on the ready one, call again for the rest.

            While analysis runs, the backend thread is blocked — tool calls queue.

            Args:
                database: Single database ID to wait for.
                databases: List of database IDs (returns when first is ready).
(name computed at run time) tool
list_targets tool
List available targets (processors, loaders, languages, etc.).
(name computed at run time) tool
open_database tool
Open a binary for analysis with Ghidra.

            Returns immediately with ``"opening": true`` — call
            wait_for_analysis before using other tools on this database.
            Re-opening an already-open database returns the existing worker.

            **Multiple binaries:** use a separate subagent per binary.

            **force_new=True** is destructive: deletes existing Ghidra
            project and all prior analysis.

            Args:
                file_path: Path to the binary file.
                run_auto_analysis: Run Ghidra auto-analysis after opening.
                keep_open: Keep other open databases (default True).
                database_id: Custom ID (must match [a-z][a-z0-9_]{0,31}).
                force_new: Delete existing project and start fresh.
                language: Ghidra language ID (e.g. ``x86:LE:64:default``,
                          ``ARM:LE:32:v8``). Auto-detected when omitted.
                          Use list_targets to see options.
                compiler_spec: Ghidra compiler spec (e.g. ``gcc``,
                               ``windows``). Auto-detected when omitted.
(name computed at run time) tool
reanalyze_range tool
Reanalyze an address range by running Ghidra auto-analysis on it.

        Call after patching bytes, changing types, or creating new code
        to force Ghidra to re-analyze the affected range.

        Args:
            start_address: Start of the range.
            end_address: End of the range (exclusive).
(name computed at run time) tool
wait_for_analysis tool
Run Ghidra's auto-analysis and wait for it to complete.

        Call this after opening a database or making changes (patches, type
        applications) to ensure the program is fully analyzed before querying.
        Returns a summary of database statistics after analysis finishes.
(name computed at run time) tool
get_analysis_problems tool
List analysis problems found by Ghidra (ERROR and WARNING bookmarks).

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
assemble_instruction tool
Assemble an instruction at an address without patching (dry-run).

        Use patch_asm to assemble and write in one step.

        Args:
            address: Address where the instruction should be assembled.
            instruction: Assembly instruction text (e.g. "NOP", "MOV EAX,1").
(name computed at run time) tool
patch_asm tool
Assemble and patch an instruction into the database in one step.

        Combines assemble_instruction + byte patching within a transaction.

        Args:
            address: Address where the instruction should be assembled and patched.
            instruction: Assembly instruction text (e.g. "NOP", "MOV EAX,1").
(name computed at run time) tool
set_bookmark tool
Set a bookmark at an address.

        Args:
            address: Address to bookmark.
            description: Description for the bookmark.
            category: Bookmark category (e.g. "Analysis", "Suspicious", "TODO").
(name computed at run time) tool
get_bookmarks tool
List all bookmarks in the database, paginated.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
delete_bookmark tool
Delete bookmark(s) at an address.

        Args:
            address: Address of the bookmark(s) to delete.
            category: If provided, only delete bookmarks in this category.
                Empty string deletes all bookmarks at the address.
(name computed at run time) tool
get_basic_blocks tool
Get basic blocks of a function (CFG nodes with successor/predecessor lists).

        See get_cfg_edges for a compact edge list suited to graph visualization.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
get_cfg_edges tool
Get CFG edges as (source, target) pairs (compact, for graph visualization).

        For block-level detail with predecessor/successor lists, use get_basic_blocks.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
list_function_chunks tool
List all address ranges (chunks) in a function body.

        Non-contiguous functions have multiple ranges due to compiler
        optimizations like basic block reordering or hot/cold splitting.

        Args:
            address: Address or symbol name of the function.
(name computed at run time) tool
append_function_tail tool
Append a tail (non-contiguous range) to a function body.

        Args:
            function_address: Address or name of the owning function.
            start: Start address of the tail region.
            end: End address of the tail region (exclusive).
(name computed at run time) tool
remove_function_tail tool
Remove a tail (non-contiguous range) from a function body.

        Removes the address range containing ``tail_address`` from the
        function body.  The entry-point range cannot be removed.

        Args:
            function_address: Address or name of the owning function.
            tail_address: Any address within the tail range to remove.
(name computed at run time) tool
set_color tool
Set the background color of an address or function.

        Ghidra stores per-address colors as an integer property on code
        units.  In headless mode some rendering-level coloring is
        unavailable; this sets the ``Color`` property that the Ghidra UI
        reads when available.

        Args:
            address: The address to colorize.
            color: Color as hex RGB string (e.g. "#FF0000" for red).
                Use empty string "" to remove color.
            what: What to color -- "item" (single address) or "func"
                (all addresses in the containing function).
(name computed at run time) tool
get_color tool
Get the background color of an address.

        Args:
            address: The address to query.
            what: What to query -- "item" or "func" (reads color at
                function entry point).
(name computed at run time) tool
get_comment tool
Get all comments at an address.
(name computed at run time) tool
set_comment tool
Set a comment at an address.

        Args:
            address: Target address.
            comment: Comment text (empty string to clear).
            comment_type: One of "eol", "pre", "post", "plate", "repeatable".
(name computed at run time) tool
set_decompiler_comment tool
Set a pre-comment at an address (visible in decompiler output).

        This sets a PRE comment, which Ghidra's decompiler renders
        above the corresponding line in the pseudocode.
(name computed at run time) tool
get_function_comment tool
Get the comment on a function.
(name computed at run time) tool
set_function_comment tool
Set a comment on a function header.
(name computed at run time) tool
get_ctree tool
Return the decompiler token tree for a function as a structured dict.

        Returns a structured representation of the decompiled code's
        token tree, useful for pattern matching and analysis. Output
        can be large for complex functions -- keep depth low (2-3)
        for initial exploration.

        Args:
            function_address: Address or name of the function.
            depth: Maximum tree depth to return (1-10, default 3).
(name computed at run time) tool
find_ctree_calls tool
Find function call sites in the decompiled output.

        Scans the decompiler's token tree for function call tokens.
        Optionally filter by callee name (substring match).

        Args:
            function_address: Address or name of the function to analyze.
            callee_name: Optional name to filter calls (empty = all calls).
(name computed at run time) tool
read_bytes tool
Read raw bytes from the database.

        Args:
            address: Start address.
            size: Number of bytes to read (max 4096).
(name computed at run time) tool
get_segments tool
List all memory segments/blocks.
(name computed at run time) tool
open_database tool
Open a binary for analysis. Called by the worker on supervisor's behalf.
(name computed at run time) tool
close_database tool
Close the current database.
(name computed at run time) tool
get_database_info tool
Get metadata about the currently open database.
(name computed at run time) tool
save_database tool
Save the current database to disk.

        Args:
            outfile: Not supported for Ghidra (raises an error if provided).
            flags: Ignored (IDA-specific).
(name computed at run time) tool
list_decompiler_variables tool
List decompiler locals and parameters for a function.

        Returns each variable's name, type, storage, and whether it is a
        parameter.  Use this before rename_decompiler_variable or
        retype_decompiler_variable to get the exact current names.

        Args:
            function_address: Address or name of the function.
(name computed at run time) tool
rename_decompiler_variable tool
Rename a decompiler local variable or parameter.

        Args:
            function_address: Address or name of the function.
            old_name: Current variable name in the decompiler output.
            new_name: New name to assign to the variable.
(name computed at run time) tool
retype_decompiler_variable tool
Retype a decompiler local variable or parameter.

        Args:
            function_address: Address or name of the function.
            variable_name: Name of the variable to retype.
            new_type: C type string to apply (e.g. "int *", "struct foo *").
(name computed at run time) tool
get_decompiler_comments tool
List pre-comments (visible in decompiler) for a function.

        Returns PRE comments on code units within the function body,
        which Ghidra's decompiler renders above the corresponding
        pseudocode line.

        Args:
            function_address: Address or name of the function.
(name computed at run time) tool
demangle_name tool
Demangle a C++ symbol name to readable form.

        Example: ``_ZN3FooC1Ev`` -> ``Foo::Foo(void)``.

        Args:
            name: The mangled symbol name.
(name computed at run time) tool
demangle_at_address tool
Demangle the symbol name at a given address.

        Args:
            address: Address or symbol name to demangle.
(name computed at run time) tool
list_demangled_names tool
List named addresses with demangled forms (C++ only; paginated, regex-filterable).

        For a single symbol, use demangle_name or demangle_at_address instead.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
            filter_pattern: Optional regex to filter demangled names.
(name computed at run time) tool
list_folders tool
List folders and fragments in Ghidra's program tree.

        Args:
            tree: Program tree name (use default "Program Tree" or check
                the listing for available trees).
            path: Directory path to list (default "/" for root).
(name computed at run time) tool
create_folder tool
Create a new folder (module) in the program tree.

        Args:
            tree: Program tree name.
            path: Full path of the folder to create (e.g. "/crypto/aes").
(name computed at run time) tool
rename_folder tool
Rename a folder (module) in the program tree.

        The new_path should have the same parent; only the leaf name
        is changed.

        Args:
            tree: Program tree name.
            old_path: Current path of the folder.
            new_path: New path for the folder.
(name computed at run time) tool
delete_folder tool
Delete a folder (module) from the program tree.

        The folder must be empty (no children) to be deleted.

        Args:
            tree: Program tree name.
            path: Path of the folder to delete.
(name computed at run time) tool
add_entry_point tool
Register a new entry point at an address.

        Adds the address as an external entry point and creates a label
        with the given name.

        Args:
            address: Address of the entry point.
            name: Name for the entry point.
(name computed at run time) tool
rename_entry_point tool
Rename an entry point's symbol at an address.

        Args:
            address: Address of the entry point.
            name: New name for the entry point.
(name computed at run time) tool
list_enums tool
List all enums in the database, paginated.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
create_enum tool
Create a new enum type.

        Args:
            name: Name for the enum.
            bitfield: If True, create as a bitfield enum (unused in Ghidra but
                reserved for future use).
(name computed at run time) tool
delete_enum tool
Delete an enum by name.

        Args:
            name: Name of the enum to delete.
(name computed at run time) tool
add_enum_member tool
Add a member to an enum.

        Args:
            enum_name: Name of the enum.
            member_name: Name for the new member.
            value: Integer value for the member.
(name computed at run time) tool
get_enum_members tool
List all members of an enum, paginated.

        Args:
            enum_name: Name of the enum.
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
rename_enum tool
Rename an enum.

        Args:
            old_name: Current name of the enum.
            new_name: New name for the enum.
(name computed at run time) tool
delete_enum_member tool
Delete a member from an enum by its value.

        Args:
            enum_name: Name of the enum.
            value: Integer value of the member to delete.
(name computed at run time) tool
rename_enum_member tool
Rename an enum member by its value.

        Args:
            enum_name: Name of the enum.
            value: Integer value of the member to rename.
            new_name: New name for the member.
(name computed at run time) tool
export_all_pseudocode tool
Decompile MANY functions in one call (expensive -- seconds each).

        Expensive: decompiles functions sequentially -- each may take seconds.
        A request for 50 functions can take minutes. Prefer using
        list_functions with filter_pattern to identify targets, then call
        decompile_function individually on functions of interest. Use
        filter_pattern here to restrict output to relevant functions (e.g.
        "crypto|decrypt") rather than decompiling everything.

        Args:
            filter_pattern: Optional regex to filter function names.
            offset: Pagination offset (by function index).
            limit: Maximum number of functions to decompile.
(name computed at run time) tool
export_all_disassembly tool
Disassemble MANY functions in one call (paginated, regex-filterable).

        Much faster than export_all_pseudocode (no decompilation needed),
        but still processes multiple functions. Use filter_pattern to
        restrict output to relevant function groups.

        Args:
            filter_pattern: Optional regex to filter function names.
            offset: Pagination offset (by function index).
            limit: Maximum number of functions to export.
(name computed at run time) tool
get_stack_frame tool
Get the stack frame layout of a function (offsets, sizes, types).

        For typed variable info from decompilation, use get_function_vars.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
get_function_vars tool
Get typed locals and parameters via decompilation.

        For the raw stack frame layout, use get_stack_frame.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
set_function_flags tool
Set or clear function flags (library, thunk, noreturn, inline).

        Only provided flags are changed; others are left as-is.

        Args:
            address: Address or name of the function.
            library: Mark/unmark as library function (tag only, no behavior change).
            thunk: Mark/unmark as thunk (wrapper) function.
            noreturn: Mark/unmark as non-returning.
            inline: Mark/unmark as inline.
(name computed at run time) tool
get_byte_flags tool
Get what is at an address: instruction, data, or undefined.

        Args:
            address: Address to query.
(name computed at run time) tool
get_function_type tool
Get the full type signature (prototype) of a function.

        Returns the return type, parameters, and calling convention.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
set_function_type tool
Set a function's full C prototype (return + args + calling convention).

        Parses a C function declaration and applies it to the function.

        Args:
            address: Address or name of the function.
            type_string: C function declaration, e.g. "int foo(int a, char *b)".
(name computed at run time) tool
set_function_calling_convention tool
Change the calling convention of a function.

        Args:
            address: Address or name of the function.
            convention: Calling convention name (e.g. "__cdecl", "__stdcall",
                "__fastcall", "__thiscall"). Use get_function_type to see
                the current convention.
(name computed at run time) tool
list_functions tool
List all functions in the database, paginated with optional regex filter.
(name computed at run time) tool
get_function tool
Get detailed information about a function.
(name computed at run time) tool
decompile_function tool
Decompile a function to C pseudocode using Ghidra's decompiler.
(name computed at run time) tool
disassemble_function tool
Disassemble a function into individual instructions.
(name computed at run time) tool
rename_function tool
Rename a function.
(name computed at run time) tool
delete_function tool
Delete a function definition (does not delete the bytes).
(name computed at run time) tool
get_imports tool
List all imported functions/symbols.

        Use module_filter to narrow results to a specific library (e.g.
        "kernel32", "libc"). After finding an import address, use
        get_xrefs_to to find all code that calls it.

        Args:
            module_filter: Optional substring to filter module/library names (case-insensitive).
            offset: Pagination offset.
            limit: Maximum number of import entries.
(name computed at run time) tool
get_exports tool
List all exported symbols.

        Good starting point for analyzing shared libraries or DLLs --
        exports are the public API. Use get_xrefs_to on an export address
        to find internal callers.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
get_entry_points tool
List binary entry points (main/start/exports).

        Entry points are addresses where execution may begin. For shared
        libraries, get_exports is more complete (includes all exported symbols).

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
load_bytes_from_memory tool
Write hex-encoded bytes directly into an existing memory block.

        Args:
            target_address: Address in the database to write bytes to.
            data: Hex-encoded bytes to write (e.g. "90909090" for NOPs,
                or "90 90 90 90" with spaces).
(name computed at run time) tool
make_data tool
Mark bytes as a primitive data type (byte/word/dword/qword/float/double).

        Args:
            address: Address to define.
            data_type: Data type -- "byte", "word" (16-bit), "dword" (32-bit),
                "qword" (64-bit), "float" (32-bit), or "double" (64-bit).
            count: Number of elements (>1 creates an array).
(name computed at run time) tool
make_string tool
Mark bytes as a string (auto-detect length if omitted).

        Args:
            address: Address of the string.
            length: String length in bytes (0 for auto-detect null-terminated).
            string_type: String encoding -- "c" (ASCII/UTF-8), "utf16" (UTF-16),
                "utf32" (UTF-32).
(name computed at run time) tool
make_array tool
Mark a contiguous run of bytes as an array.

        Args:
            address: Address of the array start.
            element_size: Size of each element in bytes (1, 2, 4, or 8).
            count: Number of elements in the array.
(name computed at run time) tool
get_address_info tool
Get classification and metadata for an address.

        Reports whether the address contains code, data, or is undefined,
        whether it has a name, cross-references, and function membership.

        Args:
            address: Address to query.
(name computed at run time) tool
list_names tool
List all named locations, paginated with optional regex filter.
(name computed at run time) tool
rename_address tool
Rename a label/symbol at an address.
(name computed at run time) tool
set_operand_format tool
Change an operand's numeric display format (hex/dec/bin/oct/char).

        For instructions, applies a display equate (Ghidra's equivalent of
        IDA's operand format change).  For data, sets the format setting
        directly on the code unit.

        Args:
            address: Instruction address.
            operand_num: Operand index (0-based).
            display_format: Display format -- "hex", "decimal", "binary", "octal",
                or "char".
(name computed at run time) tool
decode_instruction tool
Decode ONE instruction at an address (mnemonic, operands, size).

        Operand indices from the result can be used with get_operand_value.

        Args:
            address: Address of the instruction.
(name computed at run time) tool
decode_instructions tool
Decode N sequential instructions from any address (not bounded by function limits).

        Use for shellcode, inline data, or ranges across function boundaries.
        For a complete function listing, prefer disassemble_function.

        Args:
            address: Starting address.
            count: Number of instructions to decode (max 200).
(name computed at run time) tool
get_operand_value tool
Get the resolved value of an instruction operand.

        Uses Ghidra's analysis to resolve operand values including
        computed addresses, register-relative offsets, etc.

        Args:
            address: Address of the instruction.
            operand_index: Which operand (0-based).
(name computed at run time) tool
patch_bytes tool
Overwrite raw bytes in memory with a hex string (destructive).

        Args:
            address: Address to patch.
            hex_bytes: Hex string of bytes to write (e.g. "90 90 90" or "909090").
(name computed at run time) tool
create_function tool
Define a new function at an address (Ghidra auto-detects bounds).

        Args:
            address: Start address for the new function.
(name computed at run time) tool
make_code tool
Force bytes to be disassembled as code (single instruction, no function).

        Unlike create_function, this just marks the bytes as code without
        creating a function boundary. Useful for fixing misidentified data
        or extending analysis into unreached code.

        Args:
            address: Address to convert to code.
(name computed at run time) tool
undefine tool
Revert code/data definitions back to raw undefined bytes (byte values unchanged).

        Args:
            address: Address to undefine.
            size: Number of bytes to undefine.
(name computed at run time) tool
get_processor_info tool
Get processor/architecture info (language, bitness, endianness, registers).
(name computed at run time) tool
get_register_name tool
Get the name of a register by its number and width.

        Args:
            register_number: The register number (processor-specific).
            width: Register width in bytes (0 for default pointer size).
(name computed at run time) tool
is_call_instruction tool
Check whether the instruction at an address is a call.

        Args:
            address: Address of the instruction.
(name computed at run time) tool
is_return_instruction tool
Check whether the instruction at an address is a return.

        Args:
            address: Address of the instruction.
(name computed at run time) tool
rebase_program tool
Shift all addresses by a signed delta (destructive, global).

        Computes a new image base by adding the delta to the current base
        and calls ``program.setImageBase()``.

        Args:
            delta: Address delta to shift by (e.g. "0x1000" to shift forward,
                "-0x1000" to shift back).
(name computed at run time) tool
find_register_value tool
Try to determine a register value at an address by examining preceding instructions.

        This is a simplified heuristic that walks backwards from the given
        address looking for scalar loads (MOV, LEA, etc.) into the target
        register. Does not perform full dataflow or PCode emulation.

        Args:
            address: Address at which to find the register value.
            register_name: Register name (e.g. "RAX", "EAX", "R8", "ECX").
(name computed at run time) tool
list_regvars tool
List all local variables in a function via the decompiler.

        Returns variables from the decompiler's HighFunction, including
        registers, stack variables, and parameters.

        Args:
            function_address: Address or name of the function.
(name computed at run time) tool
rename_regvar tool
Rename a local variable in the decompiler view.

        Finds the variable by its current name in the decompiled function
        and renames it via HighFunctionDBUtil.

        Args:
            function_address: Address or name of the function.
            old_name: Current variable name.
            new_name: New variable name.
(name computed at run time) tool
get_strings tool
Get defined strings from the database with optional regex filter.
(name computed at run time) tool
find_code_by_string tool
Find code references to strings matching a regex pattern.

        Combines string search + xref resolution + function lookup.
(name computed at run time) tool
search_bytes tool
Search for a byte pattern in the database.

        Pattern is a hex string, e.g. "48 8B" or "488B". Wildcards not supported.
(name computed at run time) tool
search_text tool
Search disassembly text (mnemonics + operands) for a regex pattern.
(name computed at run time) tool
create_segment tool
Create a new initialized memory block (segment).

        Args:
            name: Name for the block (e.g. ".mydata").
            start_address: Start address of the block.
            end_address: End address of the block (exclusive).
            permissions: Permission string like "RWX", "R--", "RW-".
(name computed at run time) tool
delete_segment tool
Delete the memory block containing the given address.

        Args:
            address: Any address within the memory block to delete.
(name computed at run time) tool
set_segment_name tool
Rename a memory block.

        Args:
            address: Any address within the memory block.
            new_name: New name for the block.
(name computed at run time) tool
set_segment_permissions tool
Change memory block permissions (e.g., RWX, R-X, RW-).

        Args:
            address: Any address within the memory block.
            permissions: Permission string like "RWX", "R-X", "RW-".
(name computed at run time) tool
generate_signatures tool
Generate FLIRT-style signatures (not available in Ghidra).

        FLIRT signature generation (.sig/.pat) is an IDA-specific feature.
        Ghidra uses Function ID (FID) databases for a similar purpose, but
        FID database creation is done through the Ghidra GUI or separate
        tooling, not through the headless API.

        Consider using ``apply_function_id`` to apply existing Function ID
        databases, or ``list_data_type_archives`` to explore available type
        archives.
(name computed at run time) tool
apply_function_id tool
Apply Function ID (FID) analysis to identify known library functions.

        Ghidra's Function ID is the equivalent of IDA's FLIRT signatures.
        This runs the FID analyzer to match known function signatures
        against the program's functions.

        Note: Full FID analysis requires the FID databases to be
        pre-configured in Ghidra's installation. The headless/pyghidra
        API has limited FID support.

        Args:
            fid_name: Optional FID database name to apply (empty for all
                available databases).
(name computed at run time) tool
list_data_type_archives tool
List data type archives (.gdt) available in the program's type manager.

        Data type archives in Ghidra are similar to IDA's type libraries
        (TILs). They provide pre-defined type information for OS APIs,
        SDKs, and common libraries.
(name computed at run time) tool
take_snapshot tool
Save the current program state to the Ghidra project.

        Ghidra does not have IDA-style in-database snapshots. This tool
        saves the program to the project file, which acts as a checkpoint.

        Args:
            description: Optional description (informational only).
(name computed at run time) tool
list_snapshots tool
List database snapshots.

        Ghidra uses project-level file versioning rather than in-database
        snapshots. This tool returns an empty list. Use the Ghidra project
        manager for version history.
(name computed at run time) tool
parse_source_declarations tool
Parse C source declarations and import types into the program's type manager.

        Uses Ghidra's CParser to parse C type declarations. Parsed types
        are added to the program's data type manager and become available
        for application at addresses.

        Note: Ghidra's built-in parser supports C declarations only.
        The language parameter is accepted for API compatibility but
        currently only "c" is supported.

        Args:
            source: C source code string containing type declarations
                (e.g. "typedef int DWORD;" or "struct point { int x; int y; };").
            language: Source language (only "c" is currently supported).
(name computed at run time) tool
list_structures tool
List all structures and unions in the database.
(name computed at run time) tool
get_structure tool
Get detailed structure info including all members.
(name computed at run time) tool
create_structure tool
Create a new structure or union.
(name computed at run time) tool
add_struct_member tool
Add a member to a structure.

        Args:
            struct_name: Name of the structure.
            member_name: Name for the new member.
            member_type: C type of the member (e.g. "int", "char *").
            offset: Byte offset (-1 to append at end).
            size: Size in bytes (0 to auto-detect from type).
(name computed at run time) tool
retype_struct_member tool
Change the type of a structure member.
(name computed at run time) tool
rename_struct_member tool
Rename a member of a structure.

        Args:
            struct_name: Name of the structure.
            old_name: Current member name.
            new_name: New member name.
(name computed at run time) tool
delete_struct_member tool
Delete a member from a structure.

        Args:
            struct_name: Name of the structure.
            member_name: Name of the member to delete.
(name computed at run time) tool
delete_structure tool
Delete ONE struct/union by name.

        Args:
            name: Name of the structure to delete.
(name computed at run time) tool
get_switch_info tool
Get switch/jump table structure at a computed jump instruction.

        Examines the instruction at the given address for a computed jump
        (indirect jump) and returns the reference targets that form the
        switch table.

        Args:
            address: Address of the switch/indirect jump instruction.
(name computed at run time) tool
list_switches tool
Find all switch/jump tables by scanning for computed jump instructions.

        Iterates all functions and finds instructions with computed jump
        flow types. May be slow on large binaries.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
get_local_type tool
Get detailed type information including members by name.

        For structs/unions, returns all member details (name, type, offset,
        size). For enums, returns name-value pairs. Use list_local_types
        to browse available types.

        Args:
            name: Name of the data type.
(name computed at run time) tool
delete_local_type tool
Remove a data type from the program's data type manager.

        Irreversible -- the type declaration is removed. Use undo to
        revert if needed.

        Args:
            name: Name of the data type to delete.
(name computed at run time) tool
get_type_info tool
Get type information at an address.
(name computed at run time) tool
set_type tool
Apply a data type at an address.

        Args:
            address: Target address.
            type_string: C type string (e.g. "int", "char *", "struct foo").
(name computed at run time) tool
list_local_types tool
List locally defined data types.
(name computed at run time) tool
parse_type_declaration tool
Parse a C type declaration and add it to the program's type library.

        Args:
            declaration: C declaration (e.g. "typedef int DWORD;" or
                         "struct point { int x; int y; };").
(name computed at run time) tool
apply_type_at_address tool
Apply a named type from the type library at an address.

        The type must already exist (defined via parse_type_declaration
        or present in the program's built-in types).
(name computed at run time) tool
undo tool
Undo the last database modification.
(name computed at run time) tool
redo tool
Redo the last undone database modification.
(name computed at run time) tool
convert_number tool
Convert a number between hex, decimal, octal, and binary representations.

        This is useful because LLMs frequently make errors with base conversions.
        Also returns signed 32-bit and 64-bit interpretations when the value fits,
        useful for understanding sign-extended values in disassembly.

        Args:
            value: Number to convert (prefix with 0x for hex, 0o for octal, 0b for binary).
(name computed at run time) tool
add_code_xref tool
Add a code cross-reference between two addresses.

        Args:
            from_address: Source address of the reference.
            to_address: Target address of the reference.
            xref_type: Reference type -- "UNCONDITIONAL_CALL", "CONDITIONAL_CALL",
                "UNCONDITIONAL_JUMP", "CONDITIONAL_JUMP", or "FALL_THROUGH".
(name computed at run time) tool
add_data_xref tool
Add a data cross-reference between two addresses.

        Args:
            from_address: Source address of the reference.
            to_address: Target address of the reference.
            xref_type: Reference type -- "READ", "WRITE", "READ_WRITE",
                "DATA", or "INDIRECTION".
(name computed at run time) tool
delete_code_xref tool
Delete a code cross-reference.

        Args:
            from_address: Source address of the reference to remove.
            to_address: Target address of the reference to remove.
(name computed at run time) tool
delete_data_xref tool
Delete a data cross-reference.

        Args:
            from_address: Source address of the reference to remove.
            to_address: Target address of the reference to remove.
(name computed at run time) tool
get_xrefs_to tool
Get all cross-references pointing TO an address.
(name computed at run time) tool
get_xrefs_from tool
Get all cross-references FROM an address.
(name computed at run time) tool
get_call_graph tool
Get the call graph around a function (callers and callees).

        Args:
            address: Function address.
            depth: Recursion depth (1-3).
(name computed at run time) tool
open_database tool
Open a binary or existing IDA database (.i64/.idb) for analysis.

            Returns immediately with ``"opening": true`` — call
            wait_for_analysis before using other tools on this database.
            Re-opening an already-open database returns the existing worker.

            **Multiple binaries:** use a separate subagent per binary.
            Each agent calls open_database then wait_for_analysis. Do NOT
            serialize open+wait calls — that blocks parallel loading.

            **force_new=True** is destructive: deletes existing .i64/.idb
            and all prior analysis. Use only for stale/incompatible DBs.

            **Fat Mach-O:** requires explicit *fat_arch* (e.g. ``arm64``).
            Error lists available slices. Use distinct *database_id* per
            slice for concurrent analysis. *fat_arch* must be omitted for
            non-fat files and existing databases.

            Args:
                file_path: Path to the binary file or IDA database.
                run_auto_analysis: Run IDA auto-analysis after opening.
                keep_open: Keep other open databases (default True).
                database_id: Custom ID (must match [a-z][a-z0-9_]{0,31}).
                force_new: Delete existing DB files and start fresh.
                processor: IDA processor module (e.g. ``metapc``, ``arm``,
                           ``mips``). Auto-detected when omitted.
                           **ARM:** defaults to AArch64 — use
                           ``arm:ARMv7-M`` for Cortex-M, ``arm:ARMv7-A``
                           for 32-bit. Use list_targets to see options.
                loader: IDA loader (e.g. "ELF", "PE", "Binary file").
                        Auto-detected when omitted. See list_targets.
                base_address: Base address for raw binaries (hex/decimal,
                              16-byte aligned). Ignored for structured formats.
                fat_arch: Mach-O fat slice (``x86_64``, ``arm64``, etc.).
                          Required for fat binaries; must be omitted for
                          thin files and existing databases.
                options: Extra IDA CLI arguments. Do not duplicate
                         processor/loader/base_address flags here.
(name computed at run time) tool
reanalyze_range tool
Reanalyze an address range synchronously (blocks until done).

        Call after patching bytes, changing types, or creating new segments
        to force IDA to re-disassemble and re-analyze the affected range.

        Args:
            start_address: Start of the range.
            end_address: End of the range (exclusive).
(name computed at run time) tool
wait_for_analysis tool
Wait for IDA's auto-analysis to complete.

        Call this after making changes (patches, type applications) to ensure
        the database is fully analyzed before querying.  Returns a summary of
        database statistics after analysis finishes so you can sanity-check
        results without extra round trips.
(name computed at run time) tool
get_analysis_problems tool
List analysis problems/conflicts found by IDA.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
get_fixups tool
List relocation/fixup records in the binary.

        Fixups show where the loader adjusted addresses during loading.
        Useful for understanding PIE/PIC code and import resolution.

        Args:
            start_address: Start of range (default: database start).
            end_address: End of range (default: database end).
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
get_exception_handlers tool
Get exception handling (try/catch) blocks for a function.

        Identifies protected regions, catch handlers, and exception types
        in C++ binaries.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
get_segment_registers tool
Get segment register values at an address.

        Shows values of segment registers (CS, DS, ES, FS, GS, SS) at the
        given address. Useful for resolving TLS references and segmented
        addressing.

        Args:
            address: Address to query.
(name computed at run time) tool
set_segment_register tool
Set a segment register value starting at an address (e.g., fs/gs for TLS).

        Args:
            start_address: Address where the new register value starts.
            register: Register name (e.g. "fs", "gs", "ds").
            value: Value to set for the register.
(name computed at run time) tool
assemble_instruction tool
Assemble an instruction at an address without patching (dry-run).

        Use patch_asm to assemble and write in one step.

        Args:
            address: Address where the instruction should be assembled.
            instruction: Assembly instruction text (e.g. "nop", "mov eax, 1").
(name computed at run time) tool
patch_asm tool
Assemble and patch an instruction into the database in one step.

        Combines assemble_instruction + patch_bytes; creates an undo point.

        Args:
            address: Address where the instruction should be assembled and patched.
            instruction: Assembly instruction text (e.g. "nop", "mov eax, 1").
(name computed at run time) tool
set_bookmark tool
Set a bookmark (marked position) at an address.

        Args:
            address: Address to bookmark.
            description: Description for the bookmark.
            slot: Bookmark slot (1-1024, or -1 to auto-assign the first free slot).
(name computed at run time) tool
get_bookmarks tool
List all bookmarks (marked positions) in the database.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
delete_bookmark tool
Delete a bookmark by slot number.

        Args:
            slot: Bookmark slot number to delete.
(name computed at run time) tool
get_basic_blocks tool
Get basic blocks of a function (CFG nodes with successor/predecessor lists).

        See get_cfg_edges for a compact edge list suited to graph visualization.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
get_cfg_edges tool
Get CFG edges as (source, target) pairs (compact, for graph visualization).

        For block-level detail with predecessor/successor lists, use get_basic_blocks.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
list_function_chunks tool
List all chunks (contiguous regions) of a function.

        Non-contiguous functions have multiple chunks due to compiler optimizations
        like basic block reordering or hot/cold splitting.

        Args:
            address: Address or symbol name of the function.
(name computed at run time) tool
append_function_tail tool
Append a tail (non-contiguous chunk) to a function.

        Args:
            function_address: Address or name of the owning function.
            start: Start address of the tail region.
            end: End address of the tail region (exclusive).
(name computed at run time) tool
remove_function_tail tool
Remove a tail (non-contiguous chunk) from a function.

        Args:
            function_address: Address or name of the owning function.
            tail_address: Any address within the tail chunk to remove.
(name computed at run time) tool
set_tail_owner tool
Reassign a function tail chunk to a different owning function.

        Args:
            tail_address: Any address within the tail chunk.
            new_owner_address: Address or name of the new owning function.
(name computed at run time) tool
set_color tool
Set the background color of an address, function, or segment.

        Args:
            address: The address to colorize.
            color: Color as hex RGB string (e.g. "FF0000" for red, "00FF00" for green).
                Use empty string "" to remove color.
            what: What to color — "item" (single address), "func" (entire function),
                or "segm" (entire segment).
(name computed at run time) tool
get_color tool
Get the background color of an address, function, or segment.

        Args:
            address: The address to query.
            what: What to query — "item", "func", or "segm".
(name computed at run time) tool
get_comment tool
Read both disassembly comments (regular + repeatable) at ONE address.

        For pseudocode comments (Hex-Rays), use get_decompiler_comments instead.
        For function-level comments, use get_function_comment.

        Args:
            address: Address or symbol name.
(name computed at run time) tool
set_comment tool
Set a disassembly-view comment at an instruction or data address.

        Repeatable comments propagate to all xref sites. For pseudocode
        annotations use set_decompiler_comment; for whole-function comments
        use set_function_comment; to append without overwriting use
        append_comment.

        Args:
            address: Address or symbol name.
            comment: Comment text to set. Pass empty string to delete.
            repeatable: If True, set as a repeatable comment (propagates to xref sites).
(name computed at run time) tool
get_function_comment tool
Read the function-header comment (shown above the prototype).

        Function-level comment, distinct from the per-instruction comments
        returned by get_comment.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
append_comment tool
Append to an existing disassembly comment without overwriting.

        Use set_comment to replace wholesale. If the comment already contains
        the exact text, it is not duplicated. If no existing comment is
        present, this behaves like set_comment.

        Args:
            address: Address or symbol name.
            comment: Comment text to append.
            repeatable: If True, append to the repeatable comment.
            separator: Separator between existing and new text (default newline).
(name computed at run time) tool
set_function_comment tool
Set the function-header comment (shown above the prototype).

        Defaults to repeatable=True so the comment appears at every call site.
        Use set_comment for per-instruction annotations.

        Args:
            address: Address or name of the function.
            comment: Comment text to set. Pass empty string to delete.
            repeatable: If True, the comment appears at call sites too (default True).
(name computed at run time) tool
get_ctree tool
Return the Hex-Rays AST (ctree) for ONE function as a structured tree.

        Returns a structured representation of the decompiled code's
        abstract syntax tree, useful for pattern matching and analysis.
        Output can be large for complex functions — keep depth low (2-3)
        for initial exploration. For targeted searches, find_ctree_calls
        and find_ctree_patterns are more efficient than walking the full
        tree.

        Args:
            function_address: Address or name of the function.
            depth: Maximum tree depth to return (1-10, default 3).
(name computed at run time) tool
find_ctree_calls tool
Enumerate call sites inside ONE function's Hex-Rays AST (decompiled callees).

        More targeted than get_ctree for finding call sites. Optionally
        filter by callee name (substring match). For cross-reference based
        call analysis without decompilation, use get_call_graph instead.

        Args:
            function_address: Address or name of the function to analyze.
            callee_name: Optional name to filter calls (empty = all calls).
(name computed at run time) tool
find_ctree_patterns tool
Scan ONE function's Hex-Rays AST for common pattern classes (strcmp, memops, casts, ...).

        Finds common patterns like string comparisons, memory operations,
        arithmetic operations, casts, assignments, etc. Use a specific
        pattern_type to reduce output; "all" returns every pattern category,
        which can be verbose for large functions.

        Args:
            function_address: Address or name of the function.
            pattern_type: What to find — "calls", "string_refs", "comparisons",
                "assignments", "casts", "pointer_derefs", or "all".
(name computed at run time) tool
read_bytes tool
Read raw bytes from the database at a given address.

        Args:
            address: Address to read from (hex string or symbol name).
            size: Number of bytes to read (max 4096).
(name computed at run time) tool
get_segments tool
List all segments (memory layout, permissions, address ranges).

        Segment addresses can bound search_bytes, find_immediate, or
        get_fixups to avoid scanning the entire binary.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
read_pointer_table tool
Read an array of pointers (vtable, dispatch table, etc.) with optional dereference.

        Uses database bitness for pointer size (4 or 8 bytes). When
        dereference is True, resolves names and auto-detects strings.

        Args:
            address: Start address of the pointer table.
            count: Number of pointers to read (max 4096).
            dereference: Resolve names and strings at target addresses.
(name computed at run time) tool
open_database tool
Open a binary or existing IDA database for analysis.

        This must be called before using any other analysis tools.
        If a database is already open, it will be saved and closed first.

        file_path can be a raw binary or an existing .i64/.idb database.
        When a database is passed, the original binary does not need to be present.

        Set run_auto_analysis=True only for first-time analysis of a new binary
        (no existing .i64). For existing databases, analysis is already stored —
        leave this False to avoid blocking. Call wait_for_analysis separately if needed.

        Args:
            file_path: Path to the binary file or IDA database (.i64/.idb).
            run_auto_analysis: Wait for auto-analysis to complete before returning.
                               Default False — safe for existing .i64 databases.
            force_new: **Destructive** — permanently delete any existing database
                       files (.i64, .idb, etc.) and start fresh from the raw
                       binary, discarding all prior analysis.  Useful when IDA
                       returns error code 4 due to a stale or incompatible database.
            processor: Optional.  IDA processor module, optionally with a
                       variant after a colon.  IDA auto-detects from file
                       headers when omitted, but may guess wrong for raw
                       binaries.  **ARM gotcha:** the ``arm`` module
                       defaults to AArch64 (64-bit) for raw binaries —
                       use ``arm:ARMv7-M`` for Cortex-M firmware,
                       ``arm:ARMv7-A`` for 32-bit A-profile, or
                       ``arm:ARMv7-R`` for R-profile.  Other examples:
                       ``metapc`` (x86/x64), ``ppc``, ``mips``, ``mipsl``.
            loader: Optional.  IDA loader to use instead of auto-detection
                    (e.g. "ELF", "PE", "Mach-O", "Binary file").
            base_address: Optional.  Base loading address for the binary
                          (hex or decimal).  Must be 16-byte aligned.
                          Primarily useful for raw binary files; structured
                          formats (ELF, PE, Mach-O) contain their own base
                          addresses.
            fat_arch: Optional.  Architecture slice name (``x86_64``,
                      ``arm64``, ``arm64e``, ...) to extract from a
                      Mach-O fat (universal) binary.  Required when
                      opening a fat binary — the error on a missing
                      slice lists the available names.  Must be
                      omitted for thin / non-Mach-O files **and** for
                      explicit ``.i64``/``.idb`` database paths
                      (stored analysis already pins the slice);
                      either combination raises ``InvalidArgument``.
            options: Optional.  Additional IDA command-line arguments.
                     Processor, loader, and base address flags are added
                     automatically from the other parameters — do not
                     duplicate them here.
(name computed at run time) tool
close_database tool
Close the currently open database.

        Args:
            save: Whether to save changes to the IDB file.
(name computed at run time) tool
get_database_info tool
Get database metadata (arch, bitness, file type, address range, counts).
(name computed at run time) tool
save_database tool
Write the current IDB to disk and keep it open.

        Args:
            outfile: Output file path. Empty string saves to the current path.
            flags: Database flags (-1 keeps current flags).
(name computed at run time) tool
flush_buffers tool
Flush IDA's internal buffers to disk without saving the full database.

        Writes any buffered but uncommitted byte changes to disk. Faster than
        save_database when you only need to ensure recent byte-level changes are
        persisted, not a full IDB snapshot.
(name computed at run time) tool
get_database_paths tool
Get file paths for the current database (input file, IDB, ID0).
(name computed at run time) tool
get_fileregion_ea tool
Get the linear address corresponding to a file offset.

        Maps a byte offset in the original input file to its loaded
        virtual address in the database.

        Args:
            file_offset: Byte offset in the input file.
(name computed at run time) tool
get_fileregion_offset tool
Get the input file offset corresponding to a database address.

        Maps a virtual address back to its byte offset in the original input file.

        Args:
            address: Address in the database.
(name computed at run time) tool
get_database_flags tool
Get database flags (kill, compress, backup, temporary).
(name computed at run time) tool
set_database_flag tool
Set or clear a database flag (kill/compress/backup/temporary).

        Args:
            flag: Flag name — one of "kill", "compress", "backup", "temporary".
            value: True to set, False to clear.
(name computed at run time) tool
get_elf_debug_file_directory tool
Get the ELF debug file directory path.

        Returns the value of the ELF_DEBUG_FILE_DIRECTORY configuration
        directive, used for locating separate debug info files.
(name computed at run time) tool
reload_file tool
Re-read bytes from the original input file, OVERWRITING any patches.

        Keeps names, comments, and segmentation intact — only byte values are
        refreshed. Useful after the original binary has been modified externally.

        Args:
            is_remote: Whether the file is on a remote debugger server.
(name computed at run time) tool
rename_decompiler_variable tool
Rename ONE Hex-Rays local or parameter (pseudocode scope; not globals or regvars).

        Args:
            function_address: Address or name of the function.
            old_name: Current variable name in the pseudocode.
            new_name: New name to assign to the variable.
(name computed at run time) tool
retype_decompiler_variable tool
Retype ONE Hex-Rays local or parameter; for the function prototype use set_function_type.

        Args:
            function_address: Address or name of the function.
            variable_name: Name of the variable to retype.
            new_type: C type string to apply (e.g. "int *", "struct foo *").
(name computed at run time) tool
get_microcode tool
Get Hex-Rays microcode for a function at a specified maturity level.

        Microcode is the intermediate representation used by the decompiler.
        Lower levels are closer to assembly, higher levels closer to C.
        Use MMAT_GENERATED for speed (closest to assembly), MMAT_LVARS for
        closest-to-C analysis. Complex functions may hit internal limits
        (50,000 insns/block) — try a lower maturity level if that happens.

        Args:
            function_address: Address or name of the function.
            maturity: Maturity level — one of MMAT_GENERATED, MMAT_PREOPTIMIZED,
                MMAT_LOCOPT, MMAT_CALLS, MMAT_GLBOPT1, MMAT_GLBOPT2,
                MMAT_GLBOPT3, MMAT_LVARS.
(name computed at run time) tool
set_decompiler_comment tool
Attach a comment to a pseudocode line (Hex-Rays view only).

        Appears in decompilation output only, not in the disassembly view.
        To annotate the disassembly instead, use set_comment. Pass empty
        string to delete an existing comment.

        Args:
            address: Instruction address where the comment should appear.
            function_address: Address or name of the containing function (auto-detected if empty).
            comment: Comment text to set (empty string to delete).
(name computed at run time) tool
get_decompiler_comments tool
List Hex-Rays pseudocode comments for ONE function (pseudocode scope only).

        Returns only pseudocode-view comments (set via set_decompiler_comment), not
        disassembly comments. Use get_comment or get_function_comment for those.

        Args:
            function_address: Address or name of the function.
(name computed at run time) tool
list_decompiler_variables tool
List Hex-Rays locals/params for ONE function (for stack layout use get_stack_frame).

        Returns each variable's name, type, storage (stack/register), and whether it is
        a parameter. Use this before rename_decompiler_variable or
        retype_decompiler_variable to get the exact current names.

        Args:
            function_address: Address or name of the function.
(name computed at run time) tool
demangle_name tool
Demangle a C++ symbol name to readable form (e.g., _ZN3FooC1Ev -> Foo::Foo(void)).

        Args:
            name: The mangled symbol name.
            disable_mask: Bitmask of demangler features to disable (0 for default).
(name computed at run time) tool
demangle_at_address tool
Demangle the symbol name at a given address.

        Args:
            address: Address or symbol name to demangle.
(name computed at run time) tool
list_demangled_names tool
List named addresses with demangled forms (C++ only; paginated, regex-filterable).

        **Single mode** — use filter_pattern for paginated results.
        **Batch mode** — pass filters (list of {pattern, limit}) to search
        multiple patterns in one pass. For a single symbol, use demangle_name
        or demangle_at_address instead.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
            filter_pattern: Optional regex to filter demangled names.
            filters: Batch mode — list of filters for multi-pattern search.
(name computed at run time) tool
list_folders tool
List folders and items in IDA's directory tree (funcs/names/local_types/imports).

        Args:
            tree: Which tree — "funcs", "names", "local_types", or "imports".
            path: Directory path to list (default "/" for root).
(name computed at run time) tool
create_folder tool
Create a new folder in IDA's directory tree.

        Args:
            tree: Which tree — "funcs", "names", "local_types", or "imports".
            path: Full path of the folder to create (e.g. "/crypto/aes").
(name computed at run time) tool
rename_folder tool
Rename or move a folder in IDA's directory tree.

        Args:
            tree: Which tree — "funcs", "names", "local_types", or "imports".
            old_path: Current path of the folder/item.
            new_path: New path for the folder/item.
(name computed at run time) tool
delete_folder tool
Delete an empty folder from IDA's directory tree.

        Args:
            tree: Which tree — "funcs", "names", "local_types", or "imports".
            path: Path of the folder to delete.
(name computed at run time) tool
add_entry_point tool
Register a new entry point at an address; does not rename existing ones.

        Args:
            address: Address of the entry point.
            name: Name for the entry point.
            ordinal: Ordinal number (0 to auto-assign).
            make_code: Whether to mark the address as code.
(name computed at run time) tool
rename_entry_point tool
Rename an entry point's symbol by ordinal.

        For at-address rename use rename_function or rename_address.

        Args:
            ordinal: Ordinal number of the entry point.
            name: New name for the entry point.
(name computed at run time) tool
set_entry_forwarder tool
Set a forwarder name for an entry point.

        Forwarders redirect an entry point to another module's export
        (e.g. "NTDLL.RtlAllocateHeap").

        Args:
            ordinal: Ordinal number of the entry point.
            name: Forwarder name string.
(name computed at run time) tool
get_entry_forwarder tool
Get the forwarder name for an entry point.

        Args:
            ordinal: Ordinal number of the entry point.
(name computed at run time) tool
list_enums tool
List all enums (names, member counts, bitfield status).

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
create_enum tool
Create a new enum type (optionally as a bitfield).

        Args:
            name: Name for the enum.
            bitfield: If True, create as a bitfield enum (members are bitmasks).
(name computed at run time) tool
delete_enum tool
Delete an enum by name.

        Args:
            name: Name of the enum to delete.
(name computed at run time) tool
add_enum_member tool
Add a member to an enum.

        Args:
            enum_name: Name of the enum.
            member_name: Name for the new member.
            value: Integer value for the member.
(name computed at run time) tool
get_enum_members tool
List all members of an enum.

        Args:
            enum_name: Name of the enum.
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
rename_enum tool
Rename an enum.

        Args:
            old_name: Current name of the enum.
            new_name: New name for the enum.
(name computed at run time) tool
delete_enum_member tool
Delete a member from an enum by its value.

        Args:
            enum_name: Name of the enum.
            value: Integer value of the member to delete.
(name computed at run time) tool
rename_enum_member tool
Rename an enum member.

        Args:
            enum_name: Name of the enum.
            value: Integer value of the member to rename.
            new_name: New name for the member.
(name computed at run time) tool
set_enum_member_comment tool
Set a comment on an enum member.

        Args:
            enum_name: Name of the enum.
            value: Integer value of the member.
            comment: Comment text.
(name computed at run time) tool
export_all_pseudocode tool
Decompile MANY functions in one call (expensive — seconds each).

        Expensive: decompiles functions sequentially — each may take seconds.
        A request for 50 functions can take minutes. Prefer using
        list_functions with filter_pattern to identify targets, then call
        decompile_function individually on functions of interest. Use
        filter_pattern here to restrict output to relevant functions (e.g.
        "crypto|decrypt") rather than decompiling everything.

        Args:
            filter_pattern: Optional regex to filter function names.
            offset: Pagination offset (by function index).
            limit: Maximum number of functions to decompile.
(name computed at run time) tool
export_all_disassembly tool
Disassemble MANY functions in one call (paginated, regex-filterable).

        Much faster than export_all_pseudocode (no decompilation needed),
        but still processes multiple functions. Use filter_pattern to
        restrict output to relevant function groups.

        Args:
            filter_pattern: Optional regex to filter function names.
            offset: Pagination offset (by function index).
            limit: Maximum number of functions to export.
(name computed at run time) tool
generate_output_file tool
Write an IDA-native .asm/.lst/.map/.dif/.idc file to disk.

        Produces files with full IDA formatting including comments,
        cross-references, and segment information. Omitting start/end
        addresses exports the entire database, which can be slow and
        produce very large files on big binaries. Specify a function
        or segment range for targeted exports.

        Args:
            output_path: Path where the output file will be written.
            output_type: Type of output — "asm" (assembly), "lst" (listing
                with metadata), "map" (segment map), "dif" (diff format),
                or "idc" (IDC script).
            start_address: Start address of range (empty = entire database).
            end_address: End address of range (empty = entire database).
            flags: Output generation flags (GENFLG_*).
(name computed at run time) tool
generate_exe_file tool
Generate (rebuild) an executable file from the database.

        Reconstructs a binary file from the current database state,
        including any patches applied. Not all loaders support this —
        will return an error for unsupported formats. Primarily useful
        for applying patches to simple binaries.

        Args:
            output_path: Path where the executable will be written.
(name computed at run time) tool
get_stack_frame tool
Get the stack frame layout of a function (offsets, sizes, no Hex-Rays needed).

        For typed variable info from decompilation, use get_function_vars.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
get_function_vars tool
Get typed locals/params via Hex-Rays decompilation (for raw frame use get_stack_frame).

        Args:
            address: Address or name of the function.
(name computed at run time) tool
set_function_flags tool
Set or clear function flags (library, thunk, noreturn, hidden).

        Only provided flags are changed; others are left as-is.

        Args:
            address: Address or name of the function.
            library: Mark/unmark as library function.
            thunk: Mark/unmark as thunk (wrapper) function.
            noreturn: Mark/unmark as non-returning.
            hidden: Mark/unmark as hidden (collapsed in listing).
(name computed at run time) tool
get_byte_flags tool
Get IDA internal flags for a byte (code/data/head/xref status).

        Args:
            address: Address to query.
(name computed at run time) tool
add_hidden_range tool
Create a hidden (collapsed) range in the disassembly listing.

        Hidden ranges collapse a range of addresses into a single line in the
        listing, useful for hiding uninteresting code or data.

        Args:
            start_address: Start of the range.
            end_address: End of the range (exclusive).
            description: Optional description shown when collapsed.
(name computed at run time) tool
delete_hidden_range tool
Delete a hidden range that contains the given address.

        Args:
            address: Any address within the hidden range.
(name computed at run time) tool
get_hidden_ranges tool
List all hidden (collapsed) ranges in the database.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
get_function_type tool
Get the full type signature (prototype) of a function.

        Returns the return type, parameters, and calling convention.

        Args:
            address: Address or name of the function.
(name computed at run time) tool
set_function_type tool
Set a function's full C prototype (return + args + calling convention).

        Args:
            address: Address or name of the function.
            type_string: C function declaration, e.g. "int __cdecl foo(int a, char *b)".
(name computed at run time) tool
set_function_calling_convention tool
Change the calling convention of a function.

        Args:
            address: Address or name of the function.
            convention: Calling convention — "cdecl", "stdcall", "fastcall", "thiscall", "pascal".
(name computed at run time) tool
list_functions tool
List functions with regex/flag filtering and pagination.

        **Single mode** — use filter_pattern/filter_type to get a paginated
        list of functions.  **Batch mode** — pass filters (a list of
        ``{pattern, filter_type, limit}``) to search for multiple patterns
        in a single pass over the function list.

        Use filter_pattern with a regex to find functions by name.
        Combine filter_type="user" to exclude library stubs and thunks
        for more targeted results.

        Args:
            offset: Starting index for pagination.
            limit: Maximum number of results.
            filter_pattern: Optional regex pattern to filter function names.
            filter_type: Optional filter by function type — "thunk" (thunks only),
                "library" (library functions), "noreturn" (non-returning),
                "user" (exclude library and thunk functions).
            filters: Batch mode — list of filters for multi-pattern search.
(name computed at run time) tool
get_function tool
Return metadata for a function: bounds, size, flags, comments, and chunk list.

        Use this for structural information (is it a thunk? does it return? what are
        its bounds?). For pseudocode, use decompile_function. For assembly, use
        disassemble_function.

        Args:
            address: Address or symbol name of the function.
(name computed at run time) tool
decompile_function tool
Decompile ONE function to pseudocode using Hex-Rays.

        Takes a single function (by `address` OR `name`) — no list parameter.
        For many functions in one request, see the `batch` meta-tool.

        Requires a Hex-Rays decompiler license. For quick inspection without
        decompilation, use disassemble_function (faster, no license needed).

        Args:
            address: Address of the function (hex string or symbol).
            name: Name of the function to decompile.
(name computed at run time) tool
disassemble_function tool
Disassemble the ENTIRE function containing the given address.

        Takes a SINGLE address — no start/end range and no list parameter.
        For many functions in one request, see the `batch` meta-tool.

        Faster than decompile_function and does not require Hex-Rays.
        Use this for quick inspection of function logic or when only
        assembly-level detail is needed. For readable C-like pseudocode
        (decompilation), use decompile_function instead — it requires a
        Hex-Rays decompiler license. For a single instruction, use
        decode_instruction; for a byte range, use read_bytes.

        Args:
            address: Address or symbol name of the function.
(name computed at run time) tool
rename_function tool
Rename ONE function by its address (propagates through xrefs).

        Propagates the new name through decompilation and xref display
        immediately. Use rename_address for non-function labels (globals,
        data). Use rename_decompiler_variable to rename local variables
        within a function. For many renames in one request, see the `batch`
        meta-tool.

        Args:
            address: Address or current name of the function.
            new_name: New name to assign.
(name computed at run time) tool
delete_function tool
Remove a function definition without deleting the underlying code bytes.

        The instructions remain in the database but are no longer grouped as a function.
        Use this to fix incorrect function boundaries before redefining with make_function
        or set_function_bounds.

        Args:
            address: Address or name of the function to delete.
(name computed at run time) tool
set_function_bounds tool
Change the end address of a function to fix incorrect IDA-detected boundaries.

        The new_end address is exclusive (points one byte past the last instruction).
        Use get_function to check current bounds before changing them.

        Args:
            address: Address or name of the function.
            new_end: New end address (exclusive — first byte after the function).
(name computed at run time) tool
get_imports tool
List all imported functions grouped by module.

        Use module_filter to narrow results to a specific library (e.g.
        "kernel32", "libc"). After finding an import address, use
        get_xrefs_to to find all code that calls it.

        Args:
            module_filter: Optional substring to filter module names (case-insensitive).
            offset: Pagination offset (applied to the flat list of imports).
            limit: Maximum number of import entries.
(name computed at run time) tool
get_exports tool
List all exported symbols.

        Good starting point for analyzing shared libraries or DLLs —
        exports are the public API. Use get_xrefs_to on an export address
        to find internal callers.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
get_entry_points tool
List binary entry points (main/DllMain/exports); for shared libs get_exports is more complete.

        Entry points are addresses where execution may begin — main, DllMain,
        WinMain, export stubs, etc. For shared libraries, get_exports is more
        complete (includes all exported symbols, not just entry points).

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
set_import_name tool
Set the name of an import entry in IDA's import module table.

        Low-level IDA API for annotating import stubs. The modnode is an
        internal IDA module node index (0-based, from
        ida_nalt.get_import_module_qty()), not obtainable from get_imports.
        In most cases, rename_address or rename_function is sufficient to
        rename an import stub without needing the module node.

        Args:
            modnode: Module node index (0-based internal IDA identifier).
            address: Linear address of the import entry.
            name: Name to set for the import.
(name computed at run time) tool
set_import_ordinal tool
Set the ordinal of an import entry in IDA's import module table.

        Low-level IDA API. The modnode is an internal IDA module node index
        (0-based), not directly obtainable from get_imports output. See
        set_import_name for details.

        Args:
            modnode: Module node index (0-based internal IDA identifier).
            address: Linear address of the import entry.
            ordinal: Ordinal number to set.
(name computed at run time) tool
load_additional_binary tool
Load a binary file into a new auto-created segment (firmware, overlays, etc.).

        Unlike load_bytes_from_file (which overwrites bytes in an existing
        segment), this creates the segment automatically.

        Args:
            file_path: Absolute path to the binary file to load.
            load_address: Address where the file should be loaded (hex or
                          decimal).  A new segment will be created here.
                          Should be 16-byte (paragraph) aligned for clean
                          segment boundaries; non-aligned addresses are
                          accepted but may produce unexpected segment starts.
            file_offset: Offset within the file to start reading from.
            size: Number of bytes to load (0 = rest of file from offset).
(name computed at run time) tool
load_bytes_from_file tool
Overwrite bytes in an existing segment from a file (segment must already exist).

        Args:
            file_path: Absolute path to the file to load bytes from.
            target_address: Address in the database to load bytes to.
            file_offset: Offset within the file to start reading from.
            size: Number of bytes to load (0 = rest of file from offset).
(name computed at run time) tool
load_bytes_from_memory tool
Write hex-encoded bytes directly into an existing segment.

        For single-instruction patches, patch_bytes is usually more
        convenient (creates an undo point automatically).

        Args:
            target_address: Address in the database to load bytes to.
            data: Hex-encoded bytes to load (e.g. "90909090" for NOPs).
(name computed at run time) tool
make_data tool
Mark bytes as a primitive data type (byte/word/dword/qword/float/double).

        Args:
            address: Address to define.
            data_type: Data type — "byte", "word" (16-bit), "dword" (32-bit),
                "qword" (64-bit), "float" (32-bit), or "double" (64-bit).
            count: Number of elements (>1 creates an array).
(name computed at run time) tool
make_string tool
Mark bytes as a C/Pascal/Unicode string (auto-sized if length omitted).

        Args:
            address: Address of the string.
            length: String length in bytes (0 for auto-detect null-terminated).
            string_type: String encoding — "c" (ASCII), "utf16" (wide), "utf32".
(name computed at run time) tool
make_array tool
Mark a contiguous run of bytes as an array of an already-defined typed element.

        Args:
            address: Address of the array start.
            element_size: Size of each element in bytes (1, 2, 4, or 8).
            count: Number of elements in the array.
(name computed at run time) tool
get_source_line_number tool
Get the DWARF/debug source line number at an address (null if unmapped).

        Args:
            address: Address to query.
(name computed at run time) tool
set_source_line_number tool
Set the source file line number for an address.

        Useful for adding debug info or correlating binary addresses
        with source positions.

        Args:
            address: Address to annotate.
            line_number: Source line number (1-based).
(name computed at run time) tool
get_address_info tool
Get IDA's analysis flags and metadata for an address.

        Args:
            address: Address to query.
(name computed at run time) tool
set_library_item tool
Mark or unmark an address as a library item.

        Library items are shown differently in IDA and excluded from
        certain analysis outputs. Useful for marking known library code.

        Args:
            address: Address to mark.
            is_library: True to mark as library item, False to clear.
(name computed at run time) tool
rename_address tool
Rename ONE label (data, jump target, any non-function address).

        Works on any address, unlike rename_function which requires a function start.
        Use rename_function when renaming a function — it validates the function exists.
        Pass empty string to remove an existing name.

        Args:
            address: Address or current name to rename.
            new_name: New name to assign. Pass empty string to remove the name.
(name computed at run time) tool
list_names tool
List every named location (functions + globals + data labels), regex-filterable.

        **Single mode** — use filter_pattern to get a paginated list of
        names.  **Batch mode** — pass filters (a list of ``{pattern,
        limit}``) to search for multiple patterns in a single pass.

        Large binaries can have thousands of names. Use filter_pattern
        to narrow results with a regex. For function-specific name searches,
        list_functions with filter_pattern may be more targeted.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
            filter_pattern: Optional regex to filter names.
            filters: Batch mode — list of filters for multi-pattern search.
(name computed at run time) tool
set_operand_format tool
Change an operand's numeric base (hex/dec/bin/oct/char).

        Args:
            address: Instruction address.
            operand_num: Operand index (0-based).
            display_format: Display format — "hex", "decimal", "binary", "octal", or "char".
(name computed at run time) tool
set_operand_offset tool
Reinterpret a numeric operand as a flat pointer/offset (creates an xref).

        Makes IDA treat the operand value as a pointer/offset, creating a
        cross-reference to the target address.

        Args:
            address: Instruction address.
            operand_num: Operand index (0-based).
            base: Base address for the offset calculation (0 for flat).
(name computed at run time) tool
set_operand_enum tool
Display a numeric operand as an enum member name.

        For numeric-base changes (hex/dec/bin) use set_operand_format.

        Args:
            address: Instruction address.
            operand_num: Operand index (0-based).
            enum_name: Name of the enum to apply.
(name computed at run time) tool
set_operand_struct_offset tool
Reinterpret an operand as a struct field offset (creates the struct xref).

        Makes IDA display the operand as a struct member access (e.g. struc.field).

        Args:
            address: Instruction address.
            operand_num: Operand index (0-based).
            struct_name: Name of the structure.
(name computed at run time) tool
decode_instruction tool
Decode ONE instruction at an address (mnemonic, operands, size).

        Operand indices from the result can be used with set_operand_*
        and get_operand_value tools.

        Args:
            address: Address of the instruction.
(name computed at run time) tool
decode_instructions tool
Decode N sequential instructions from any address (not bounded by function limits).

        Use for shellcode, inline data, or ranges across function boundaries.
        For a complete function listing, prefer disassemble_function.

        Args:
            address: Starting address.
            count: Number of instructions to decode (max 200).
(name computed at run time) tool
get_operand_value tool
Get the resolved value of an instruction operand.

        Uses IDA's analysis to resolve operand values including
        computed addresses, register-relative offsets, etc.

        Args:
            address: Address of the instruction.
            operand_index: Which operand (0-based).
(name computed at run time) tool
patch_bytes tool
Overwrite raw bytes in the IDB with a hex string (atomic, destructive).

        Args:
            address: Address to patch.
            hex_bytes: Hex string of bytes to write (e.g. "90 90 90" or "909090").
(name computed at run time) tool
create_function tool
Define a new function at an address (IDA auto-detects bounds).

        Args:
            address: Start address for the new function.
(name computed at run time) tool
make_code tool
Force bytes to be disassembled as code (single instruction, no function).

        Unlike create_function, this just marks the bytes as code without
        creating a function boundary. Useful for fixing misidentified data
        or extending analysis into unreached code.

        Args:
            address: Address to convert to code.
(name computed at run time) tool
undefine tool
Revert code/data definitions back to raw undefined bytes (byte values unchanged).

        Args:
            address: Address to undefine.
            size: Number of bytes to undefine.
(name computed at run time) tool
get_processor_info tool
Get processor/architecture info (name, registers, bitness).
(name computed at run time) tool
get_register_name tool
Get the name of a register by its number and width.

        Args:
            register_number: The register number (processor-specific).
            width: Register width in bytes (0 for default width).
(name computed at run time) tool
is_call_instruction tool
Check whether the instruction at an address is a call.

        Args:
            address: Address of the instruction.
(name computed at run time) tool
is_return_instruction tool
Check whether the instruction at an address is a return.

        Args:
            address: Address of the instruction.
(name computed at run time) tool
is_alignment_instruction tool
Check whether an instruction is alignment padding (NOP sled, etc.).

        Args:
            address: Address of the instruction.
(name computed at run time) tool
get_instruction_list tool
Get all instruction mnemonics recognized by the current processor.
(name computed at run time) tool
move_segment tool
Relocate ONE segment to a new start address and fix up its references.

        Relocates the entire segment and updates all references. For a
        whole-program shift use rebase_program.

        Args:
            address: Any address within the segment to move.
            new_start: New starting address for the segment.
(name computed at run time) tool
rebase_program tool
Shift EVERY address by a delta (destructive, global).

        Args:
            delta: Address delta to shift by (e.g. "0x1000" to shift forward,
                "-0x1000" to shift back).
(name computed at run time) tool
find_register_value tool
Trace a register value at an address using IDA's backwards register tracker.

        Useful for resolving indirect calls and computed addresses.

        Args:
            address: Address at which to find the register value.
            register: Register name (e.g. "rax", "eax", "r8", "ecx").
(name computed at run time) tool
find_stack_pointer_value tool
Get the stack pointer offset (relative to function entry) at an address.

        Args:
            address: Address at which to find the SP value.
(name computed at run time) tool
add_regvar tool
Define a register variable within a function.

        Maps a physical register to a user-defined name for the range
        [start_address, end_address). This affects disassembly display for
        that address range — register references will show the user name.

        Args:
            function_address: Address or name of the containing function.
            start_address: Start of the range where this mapping applies.
            end_address: End of the range (exclusive).
            register_name: Canonical register name (e.g. "eax", "rbx").
            user_name: Name to display instead of the register.
            comment: Optional comment for this definition.
(name computed at run time) tool
delete_regvar tool
Delete a register variable definition.

        Removes the mapping of a register to a user name within the given
        address range. After deletion the register returns to its canonical
        name in disassembly.

        Args:
            function_address: Address or name of the containing function.
            start_address: Start of the range.
            end_address: End of the range (exclusive).
            register_name: Canonical register name (e.g. "eax", "rbx").
(name computed at run time) tool
get_regvar tool
Get the register variable definition at an address for a specific register.

        Args:
            function_address: Address or name of the containing function.
            address: Address to query.
            register_name: Canonical register name (e.g. "eax", "rbx").
(name computed at run time) tool
list_regvars tool
List all register variable definitions in a function.

        Iterates function instructions and collects all register-to-name
        mappings defined within the function.

        Args:
            function_address: Address or name of the function.
(name computed at run time) tool
rename_regvar tool
Rename a regvar alias in the disassembly view (register-scoped, per-range).

        Args:
            function_address: Address or name of the containing function.
            address: Any address within the regvar's range.
            register_name: Canonical register name (e.g. "eax", "rbx").
            new_name: New user-defined name.
(name computed at run time) tool
set_regvar_comment tool
Set the comment on a register variable definition.

        Args:
            function_address: Address or name of the containing function.
            address: Any address within the regvar's range.
            register_name: Canonical register name (e.g. "eax", "rbx").
            comment: New comment text.
(name computed at run time) tool
rebuild_string_list tool
Refresh the cached string list after patches or new data definitions.

        Call this after patching bytes, defining new data, or any other
        modification that may create or destroy strings.  The string list
        is cached — read-only tools like get_strings use the cached
        version automatically, but the cache is NOT updated on mutation.
(name computed at run time) tool
get_strings tool
List string literals IDA identified (paginated, regex-filterable).

        **Single mode** — use filter_pattern (or no filter) to get a
        paginated list of strings.  **Batch mode** — pass filters (a list
        of ``{pattern, min_length, limit}``) to search for multiple
        patterns in a single pass over the string list, avoiding redundant
        iteration.

        This is the recommended starting point for string-based analysis.
        After finding a string of interest, use get_xrefs_to on its
        address to find all code that references it, or use
        find_code_by_string to do both steps at once.

        Results come from IDA's cached string list, which is built once
        during initial analysis (wait_for_analysis).  If you patch bytes,
        define new data, or otherwise create/destroy strings after that,
        call rebuild_string_list first to refresh the cache.

        Args:
            min_length: Minimum string length to include.
            offset: Pagination offset.
            limit: Maximum number of results.
            filter_pattern: Optional regex to filter string values.
            filters: Batch mode — list of filters for multi-pattern search.
(name computed at run time) tool
find_code_by_string tool
Find functions that xref a string matching a regex (string → caller lookup).

        Combines get_strings + get_xrefs_to + function resolution into a
        single call.  Returns a list of (string, function) pairs —
        does NOT auto-decompile.  Use the returned function addresses
        with decompile_function to inspect the code.

        Uses IDA's cached string list (built during wait_for_analysis).
        If you patch bytes or define new data, call rebuild_string_list
        first to refresh the cache.

        Args:
            pattern: Regex pattern to match string values.
            min_length: Minimum string length.
            offset: Number of results to skip (for pagination).
            limit: Maximum number of string-to-function refs to return.
(name computed at run time) tool
search_bytes tool
Scan raw bytes across the binary for a hex/wildcard pattern.

        Supports IDA-style hex patterns with wildcards:
        e.g. "48 8B ?? 90" or "488B??90"

        Performance: scans linearly from start_address through the binary.
        On large binaries, this can be slow when searching from the beginning.
        Prefer narrowing the search with start_address when possible, or use
        get_strings + get_xrefs_to for string-based lookups instead.

        Args:
            pattern: Hex byte pattern (spaces optional, ?? for wildcards).
            start_address: Address to start searching from (default: beginning).
            max_results: Maximum matches to return.
(name computed at run time) tool
search_text tool
Grep rendered disassembly text (mnemonics + operands).

        This searches the disassembly text representation, NOT string literals
        in the binary data. To find string constants (like "hello world"), use
        get_strings instead.

        Performance: scans linearly through all instructions from the start
        of the database. On large binaries, prefer get_strings + get_xrefs_to
        to locate code referencing known strings.

        Args:
            text: Text to search for in disassembly lines.
            max_results: Maximum matches to return.
(name computed at run time) tool
find_immediate tool
Search for instructions containing a specific immediate operand value.

        Finds all instructions that use the given integer as an immediate
        operand. More precise than search_bytes (which matches raw bytes) —
        this matches the decoded operand value regardless of encoding.

        Performance: scans linearly like search_bytes. Common values (0, 1,
        alignment constants) will produce many matches. Use start_address to
        narrow the search range. Combine results with get_function to group
        matches by function.

        Args:
            value: The immediate value to search for.
            start_address: Address to start searching from (default: beginning).
            max_results: Maximum matches to return.
(name computed at run time) tool
create_segment tool
Create a new segment in the database.

        Args:
            name: Name for the segment (e.g. ".mydata").
            start_address: Start address of the segment.
            end_address: End address of the segment (exclusive).
            segment_class: Segment class — "CODE", "DATA", "BSS", "STACK", etc.
            bitness: Address size — 0 for 16-bit, 1 for 32-bit, 2 for 64-bit.
            permissions: Permission string like "RWX", "R--", "RW-".
(name computed at run time) tool
delete_segment tool
Delete the segment containing the given address.

        Args:
            address: Any address within the segment to delete.
(name computed at run time) tool
set_segment_name tool
Rename a segment.

        Args:
            address: Any address within the segment.
            new_name: New name for the segment.
(name computed at run time) tool
set_segment_permissions tool
Change segment permissions (e.g., RWX, R-X, RW-).

        Args:
            address: Any address within the segment.
            permissions: Permission string like "RWX", "R-X", "RW-".
(name computed at run time) tool
set_segment_bitness tool
Change the addressing mode of a segment (16/32/64-bit).

        Args:
            address: Any address within the segment.
            bitness: Address size — 0 for 16-bit, 1 for 32-bit, 2 for 64-bit.
(name computed at run time) tool
set_segment_class tool
Change the class of a segment (CODE/DATA/BSS/STACK/etc.).

        Args:
            address: Any address within the segment.
            segment_class: New class — "CODE", "DATA", "BSS", "STACK", etc.
(name computed at run time) tool
generate_signatures tool
Generate FLIRT .sig and .pat files from the current database for library identification.

        Args:
            only_pat: If True, only generate .pat file (no .sig compilation).
(name computed at run time) tool
apply_flirt_signature tool
Apply a FLIRT signature library to auto-identify and name library functions.

        Essential for statically linked binaries.

        Args:
            sig_name: Name of the signature file (without extension), e.g. "libc".
(name computed at run time) tool
list_flirt_signatures tool
List FLIRT signature files currently applied to the database.
(name computed at run time) tool
load_type_library tool
Load a TIL (type library) for OS/SDK types (e.g., gnulnx_x64, mssdk_win10).

        Args:
            til_name: Name of the type library (without extension).
(name computed at run time) tool
list_type_libraries tool
List all loaded type information libraries (TILs).
(name computed at run time) tool
load_ids_module tool
Load and apply an IDS (ID Signature) file.

        IDS files contain type information for known library functions.
        If the program imports from a module matching the IDS filename,
        only those imports are affected. Otherwise any function may be updated.

        Args:
            filename: Name of the IDS file to apply.
(name computed at run time) tool
take_snapshot tool
Create a persistent restore point (survives sessions; stronger than undo).

        Creates a point-in-time snapshot that can be restored later.
        Unlike undo, snapshots persist across sessions and can capture
        the full database state at a specific moment.

        Args:
            description: Optional description for the snapshot.
(name computed at run time) tool
list_snapshots tool
List all database snapshots.

        Returns the snapshot tree flattened into a list with depth
        information indicating parent-child relationships.
(name computed at run time) tool
restore_snapshot tool
Revert the database to a prior snapshot (destroys unsaved changes).

        Replaces the current database state with the snapshot state.
        The current state is lost unless a snapshot was taken beforehand.

        Works by saving the current database, closing it, and reopening
        the snapshot's .i64 file — the only reliable approach in headless
        idalib mode.

        Args:
            snapshot_id: ID of the snapshot to restore (string from list_snapshots).
(name computed at run time) tool
get_source_parser tool
Get the active source language parser name (e.g., "clang").
(name computed at run time) tool
parse_source_declarations tool
Parse C/C++/ObjC/Swift/Go source declarations and import types into the database.

        Parsed types are added to the current type library and become
        available for type application.

        Args:
            source: Source code string, or a file path if is_path=true.
            language: Source language — "c", "cpp"/"c++", "objc", "swift", "go".
                      Ignored if parser_name is specified.
            is_path: If true, source is interpreted as a file path.
            parser_name: Use a specific parser by name instead of auto-selecting
                         by language. Leave empty to auto-select.

        Returns:
            error_count: Number of parse errors (0 = fully clean).
            status: "parsed_ok" or "parsed_with_errors".
(name computed at run time) tool
list_structures tool
List structs/unions (names, sizes, member counts).

        For full member details, use get_structure. For type-library types (structs
        defined via parse_type_declaration), use list_local_types instead.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
get_structure tool
Return ONE struct/union with all members (offsets, sizes, types).

        Args:
            name: Name of the structure.
(name computed at run time) tool
create_structure tool
Create a new structure or union.

        Args:
            name: Name for the new structure.
            is_union: If True, create a union instead of a struct.
(name computed at run time) tool
delete_structure tool
Delete ONE struct/union by name.

        Args:
            name: Name of the structure to delete.
(name computed at run time) tool
add_struct_member tool
Add a member to an existing structure.

        Args:
            struct_name: Name of the structure.
            member_name: Name for the new member.
            offset: Byte offset (-1 to append at end).
            size: Size in bytes (1, 2, 4, or 8).
            type_str: Optional C type string for the member.
(name computed at run time) tool
rename_struct_member tool
Rename a member of a structure.

        Args:
            struct_name: Name of the structure.
            old_name: Current name of the member.
            new_name: New name for the member.
(name computed at run time) tool
delete_struct_member tool
Delete a member from a structure.

        Args:
            struct_name: Name of the structure.
            member_name: Name of the member to delete.
(name computed at run time) tool
retype_struct_member tool
Change the type of a structure member.

        Args:
            struct_name: Name of the structure.
            member_name: Name of the member to retype.
            type_str: C type string (e.g. "int", "char *", "struct foo").
(name computed at run time) tool
set_struct_member_comment tool
Set a comment on a structure member.

        Args:
            struct_name: Name of the structure.
            member_name: Name of the member.
            comment: Comment text.
            repeatable: If True, set as repeatable comment.
(name computed at run time) tool
get_switch_info tool
Get switch/jump table structure at an indirect jump (targets, cases, default).

        Args:
            address: Address of the switch/indirect jump instruction.
(name computed at run time) tool
list_switches tool
Find all switch/jump tables in the database (may be slow on large binaries).

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
list_local_types tool
List Local Types (C typedefs/enums/structs/funcs from parse_type_declaration).

        Returns structs, unions, enums, and typedefs from the local type
        library. Large databases may have hundreds or thousands of types —
        use pagination or get_local_type to look up specific types by name.

        Args:
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
get_local_type tool
Get a local type's full declaration (members, sizes, kind) by name.

        Use list_local_types to browse available types, then this tool for
        detailed member information. To apply a type at an address, use
        apply_type_at_address.

        Args:
            name: Name of the local type.
(name computed at run time) tool
parse_type_declaration tool
Parse a C declaration (struct/typedef/enum/func) and register it as a Local Type.

        Named types (structs, enums, typedefs) are saved to the database.
        Anonymous types are parsed but not saved. May merge with existing
        types if the name already exists. After adding a type, use
        apply_type_at_address to apply it at specific addresses.

        Args:
            declaration: C type declaration (e.g. "struct foo { int x; char y; };").
(name computed at run time) tool
delete_local_type tool
Delete a named local type from the database.

        Irreversible — the type declaration is removed from the local type library.
        Use delete_local_type_by_ordinal for unnamed types.

        Args:
            name: Name of the local type to delete.
(name computed at run time) tool
delete_local_type_by_ordinal tool
Delete a Local Type by ordinal (for unnamed/anonymous types).

        Useful for removing unnamed types that cannot be deleted by name.

        Args:
            ordinal: Ordinal number of the type to delete.
(name computed at run time) tool
apply_type_at_address tool
Apply an already-defined local type (struct/typedef/enum) at an address.

        Preferred over set_type when the type is already defined (via
        parse_type_declaration or an existing local type) — resolves by name
        and handles complex types correctly. Use get_local_type to verify
        the type exists before applying. Use set_type for inline type strings.

        Args:
            address: Address to apply the type at.
            type_name: Name of a type in the local type library.
(name computed at run time) tool
get_type_info tool
Read the name and current IDA type string at an address.

        Returns empty strings if no type has been applied. Use set_type or
        apply_type_at_address to assign a type, and get_local_type to look
        up the full declaration for a named type.

        Args:
            address: Address or symbol name.
(name computed at run time) tool
set_type tool
Apply an inline C type string at a data address.

        Use this for inline types and function pointer declarations. For types
        already defined in the local type library (structs, enums, typedefs),
        use apply_type_at_address instead — it resolves by name and is safer
        for complex types. For function prototypes, prefer set_function_type.

        Args:
            address: Address or symbol name.
            type_string: C type declaration (e.g. "int (*)(void *, int)", "unsigned int").
(name computed at run time) tool
undo tool
Undo the last database modification.
(name computed at run time) tool
redo tool
Redo the last undone database modification.
(name computed at run time) tool
convert_number tool
Convert a number between hex, decimal, octal, and binary representations.

        This is useful because LLMs frequently make errors with base conversions.
        Also returns signed 32-bit and 64-bit interpretations when the value fits,
        useful for understanding sign-extended values in disassembly.

        Args:
            value: Number to convert (prefix with 0x for hex, 0o for octal, 0b for binary).
(name computed at run time) tool
evaluate_expression tool
Evaluate an IDC expression and return the result.

        Args:
            expression: IDC expression to evaluate (e.g. "MinEA()", "0x1000+0x20").
(name computed at run time) tool
run_script tool
DANGEROUS: run arbitrary IDAPython with full FS/network access.

            SECURITY WARNING: This runs arbitrary Python with FULL access to the
            filesystem, network, and IDA internals. Only use with trusted input.
            Prefer the dedicated tools when possible — this is a last resort for
            operations not covered by other tools.

            This tool is only available when the IDA_MCP_ALLOW_SCRIPTS
            environment variable is set to "1", "true", or "yes".

            Args:
                code: Python code to execute. Use print() for output.
(name computed at run time) tool
add_code_xref tool
Add a code cross-reference between two addresses.

        Args:
            from_address: Source address of the reference.
            to_address: Target address of the reference.
            xref_type: Reference type — "fl_CF" (call far), "fl_CN" (call near),
                "fl_JF" (jump far), "fl_JN" (jump near), "fl_F" (ordinary flow).
(name computed at run time) tool
add_data_xref tool
Add a data cross-reference between two addresses.

        Args:
            from_address: Source address of the reference.
            to_address: Target address of the reference.
            xref_type: Reference type — "dr_R" (read), "dr_W" (write),
                "dr_O" (offset), "dr_I" (informational), "dr_T" (text),
                "dr_S" (stack).
(name computed at run time) tool
delete_code_xref tool
Delete a code cross-reference.

        Args:
            from_address: Source address of the reference to remove.
            to_address: Target address of the reference to remove.
            expand: If True, the function at the target may be truncated.
(name computed at run time) tool
delete_data_xref tool
Delete a data cross-reference.

        Args:
            from_address: Source address of the reference to remove.
            to_address: Target address of the reference to remove.
(name computed at run time) tool
get_xrefs_to tool
List all cross-references pointing TO an address (callers, data readers, etc.).

        Returns both code xrefs (calls, jumps) and data xrefs (pointer references) —
        check is_code to distinguish them. For function-level caller/callee analysis,
        get_call_graph is more convenient. Use find_code_by_string to combine
        get_strings + get_xrefs_to in a single call.

        Args:
            address: Target address or symbol name.
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
get_xrefs_from tool
List all cross-references originating FROM an address (callees, data accesses).

        Shows what the given address references — useful after search_bytes or
        search_text to understand what a found instruction accesses. For
        function-level callee traversal, get_call_graph is more convenient.

        Args:
            address: Source address or symbol name.
            offset: Pagination offset.
            limit: Maximum number of results.
(name computed at run time) tool
get_call_graph tool
Get the call graph for a function (callers and callees).

        Output grows exponentially with depth. depth=1 returns direct
        callers/callees and is always safe. depth=2 on hub functions
        (malloc, printf, etc.) can return thousands of entries and may
        timeout. depth=3 is not recommended for most use cases. For
        simpler queries, get_xrefs_to (callers) or get_xrefs_from
        (callees) may suffice.

        Args:
            address: Address or name of the function.
            depth: How many levels deep to traverse (1-3, default 1).
survey_binary prompt
One-call binary triage. Produces an executive summary of the binary: what it is, what it does, key areas of interest, and recommended next steps.
analyze_function prompt
Full single-function analysis. Decompiles, maps data flow, identifies strings and constants, and summarizes behavior.
diff_before_after prompt
Preview the effect of renaming or retyping on decompiler output. Decompiles before and after, then shows what changed.
classify_functions prompt
Classify functions by behavioral patterns to prioritize analysis effort.
find_crypto_constants prompt
Scan for known cryptographic constants to identify crypto algorithms in use.
auto_rename_strings prompt
Suggest function renames based on unique string references. Does not apply changes — presents suggestions for review.
apply_abi prompt
Apply known ABI type information to identified functions (e.g. syscalls, Windows API wrappers, libc stubs).
export_idc_script prompt
Generate an IDAPython script that reproduces all user annotations (renames, types, comments) for portability to another IDB.
(name computed at run time) resource
(name computed at run time) resource
databases_resource resource
All open databases with worker status (supervisor-level)
ghidra://db/entrypoints{?offset,limit} resource
db_entrypoints resource
All entry points with address and name
ghidra://db/entrypoints/search/{pattern}{?offset,limit} resource
db_entrypoints_search resource
Search entry points by name regex pattern
ghidra://db/imports{?offset,limit} resource
db_imports resource
All imports grouped by module
ghidra://db/imports/search/{pattern}{?offset,limit} resource
db_imports_search resource
Search imports by module or symbol name regex
ghidra://db/exports{?offset,limit} resource
db_exports resource
All exported symbols
ghidra://db/exports/search/{pattern}{?offset,limit} resource
db_exports_search resource
Search exports by name regex
ghidra://db/statistics resource
db_statistics resource
Summary counts: functions, strings, segments, names, coverage
ida://idb/entrypoints{?offset,limit} resource
idb_entrypoints resource
All entry points with ordinal, address, name
ida://idb/entrypoints/search/{pattern}{?offset,limit} resource
idb_entrypoints_search resource
Search entry points by name regex pattern
ida://idb/imports{?offset,limit} resource
idb_imports resource
All imports grouped by module
ida://idb/imports/search/{pattern}{?offset,limit} resource
idb_imports_search resource
Search imports by module or symbol name regex pattern
ida://idb/exports{?offset,limit} resource
idb_exports resource
All exported symbols with ordinals
ida://idb/exports/search/{pattern}{?offset,limit} resource
idb_exports_search resource
Search exports by name regex pattern
ida://idb/statistics resource
idb_statistics resource
Summary counts: functions, strings, segments, names, coverage

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure2.9
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 349 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    1 finding the scanner could not decide; see the findings below
  • Reads or writes any file path HIGH
    4 findings in create_folder, delete_folder, open_database, rename_folder; 5 more to review
  • Requests any address
    No tool sends a request to an address the caller supplies — 349 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 349 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 696 capabilities; 340 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    39 of 696 capabilities touch files; 301 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    Not seen in the traced code of 696 capabilities; 340 more call code the scanner could not follow, where it may happen
Where the code is: 696 handlers in 101 files at commit 7b38aa92952b
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain1.9
  • Dependency manifests
    4 manifests: packages/re-mcp-core/pyproject.toml, packages/re-mcp-ghidra/pyproject.toml, packages/re-mcp-ida/pyproject.toml, pyproject.toml
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database; 4 not resolved: packages/re-mcp-core/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; packages/re-mcp-ghidra/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
  • Known vulnerabilities in production dependencies CRITICAL
    12 production packages with known advisories
  • Known vulnerabilities in other dependencies
    2 packages with advisories used only for development, tests or examples; an install of the server leaves them out
  • MCP SDK version
    No MCP SDK declared in a manifest
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 696 capabilities; 340 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (12 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

PackageInstalledWorstAdvisoriesFixed in
pyjwtPyPI 2.13.0 CRITICAL 29 advisories 2.14.02.15.0
  • CRITICALGHSA-ffc3-869f-jxw9 CVE-2026-102268 PYSEC-2026-4145PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion guard
  • HIGHGHSA-w2cx-738m-mc7w CVE-2026-102273 PYSEC-2026-4151PyJWT accepts public JWK containers as HMAC secrets
  • HIGHGHSA-9v7f-9g4p-ffgj CVE-2026-102267 PYSEC-2026-4144PyJWT: PyJWKClient follows redirects when fetching JWKS
  • HIGHGHSA-p4g4-x82p-q773 CVE-2026-102271 PYSEC-2026-4149PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard
  • HIGHGHSA-9j54-fg26-wv3r CVE-2026-102266 PYSEC-2026-4143PyJWT: PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation
  • HIGHGHSA-pxh4-856f-4h89PyJWT: HS256/384/512 verify accepts empty HMAC key via oct JWK (PyJWK/PyJWKClient) enabling token forgery
  • HIGHGHSA-r6x4-923q-g947 CVE-2026-102272 PYSEC-2026-4150PyJWT BOM Bypass
  • MEDIUMPYSEC-2026-4151 CVE-2026-102273 GHSA-w2cx-738m-mc7wPyJWT accepts public JWK containers as HMAC secrets
  • MEDIUMGHSA-x33g-cr3x-6449 CVE-2026-102275 PYSEC-2026-4183PyJWT accepts inconsistent OKP x/d JWKs, causing public/private key identity confusion
  • MEDIUMGHSA-gvp8-978c-rx2q CVE-2026-103001 PYSEC-2026-4146PyJWT.decode() reintroduces options-dict mutation, enabling silent claim-verification bypass on dict reuse
  • MEDIUMPYSEC-2026-4150 CVE-2026-102272 GHSA-r6x4-923q-g947PyJWT BOM Bypass
  • MEDIUMGHSA-hxm8-2xgr-2p9m CVE-2026-102269 PYSEC-2026-4147PyJWT: Non-canonical signature segments enable raw-token revocation bypass
  • MEDIUMGHSA-42vr-xj54-vc7v CVE-2026-101918 PYSEC-2026-4141PyJWT: Unauthenticated RecursionError DoS in pre-verification payload parse (PyJWKClient.get_signing_key_from_jwt / verify_signature=False)
  • MEDIUMGHSA-w6j9-cwv2-h6wq CVE-2026-102274 PYSEC-2026-4152PyJWT: Malformed RSA JWK aborts parsing of an entire JWK Set
  • MEDIUMPYSEC-2026-4144 CVE-2026-102267 GHSA-9v7f-9g4p-ffgjPyJWT: PyJWKClient follows redirects when fetching JWKS
  • MEDIUMPYSEC-2026-4152 CVE-2026-102274 GHSA-w6j9-cwv2-h6wqPyJWT: Malformed RSA JWK aborts parsing of an entire JWK Set
  • MEDIUMPYSEC-2026-4183 CVE-2026-102275 GHSA-x33g-cr3x-6449PyJWT is a Python implementation of JSON Web Token standards. From 2.1.0 until 2.15.0, PyJWT OKPAlgorithm.from_jwk in jwt/algorithms.py is affected because private-JWK import path does not compare the public key derived from d with x. This occurs when an OKP private JWK supplies non-corresponding x and d components. As a result, identity derived from x can differ from operations performed with d. Consequently, if an integration also accepts private key parameters from a proof header without rejecting them, an attacker may use a stolen sender-constrained token without the legitimate private key. This issue is fixed in version 2.15.0.
  • MEDIUMGHSA-jwrc-g2q2-pq5p CVE-2026-102270 PYSEC-2026-4148PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.
  • MEDIUMPYSEC-2026-4147 CVE-2026-102269 GHSA-hxm8-2xgr-2p9mPyJWT: Non-canonical signature segments enable raw-token revocation bypass
  • MEDIUMPYSEC-2026-4143 CVE-2026-102266 GHSA-9j54-fg26-wv3rPyJWT: PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation
  • MEDIUMPYSEC-2026-4148 CVE-2026-102270 GHSA-jwrc-g2q2-pq5pPyJWT: ReDoS vulnerability when calling the `is_pem_format` function.
  • MEDIUMPYSEC-2026-4146 CVE-2026-103001 GHSA-gvp8-978c-rx2qPyJWT.decode() reintroduces options-dict mutation, enabling silent claim-verification bypass on dict reuse
  • MEDIUMPYSEC-2026-4149 CVE-2026-102271 GHSA-p4g4-x82p-q773PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard
  • MEDIUMGHSA-2gx3-rcp4-g85q CVE-2026-101917 PYSEC-2026-4140PyJWT: PyJWKClient still amplifies unauthenticated JWKS fetches on unknown kid values (incomplete fix of CVE-2026-48524)
  • MEDIUMPYSEC-2026-4142 CVE-2026-102265 GHSA-8wjv-2p76-3863PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header
  • MEDIUMPYSEC-2026-4140 CVE-2026-101917 GHSA-2gx3-rcp4-g85qPyJWT: PyJWKClient still amplifies unauthenticated JWKS fetches on unknown kid values (incomplete fix of CVE-2026-48524)
  • MEDIUMPYSEC-2026-4141 CVE-2026-101918 GHSA-42vr-xj54-vc7vPyJWT: Unauthenticated RecursionError DoS in pre-verification payload parse (PyJWKClient.get_signing_key_from_jwt / verify_signature=False)
  • MEDIUMPYSEC-2026-4145 CVE-2026-102268 GHSA-ffc3-869f-jxw9PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion guard
  • MEDIUMGHSA-8wjv-2p76-3863 CVE-2026-102265 PYSEC-2026-4142PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header
authlibPyPI 1.7.2 CRITICAL 16 advisories 1.8.01.9.01.9.1
  • CRITICALGHSA-6v38-4h7w-rj9h CVE-2026-96760Authlib: empty signatures validation in JWS JSON deserialization
  • HIGHGHSA-c73q-w75p-j82v CVE-2026-116672Authlib RFC 7592 examples omit registration-access-token client binding
  • HIGHGHSA-7vr2-2fgp-9w7p CVE-2026-114615 PYSEC-2026-4355Authlib incomplete algorithm-confusion fix permits HMAC forgery with prefixed public keys
  • HIGHGHSA-8m4g-j4wp-wgcg CVE-2026-114616 PYSEC-2026-4356Authlib accepts an empty HMAC key, allowing JWS/JWT signature forgery (HS256/HS384/HS512)
  • MEDIUMPYSEC-2026-4356 CVE-2026-114616 GHSA-8m4g-j4wp-wgcgAuthlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.1, Authlib's OctKey.import_key() and HMAC signing and verification path accept zero-length key material. If an application's secret lookup can return an empty string or empty bytes, a remote attacker can compute the deterministic HS256, HS384, or HS512 signature for arbitrary token claims and have Authlib treat the token as authentic. This issue is fixed in version 1.9.1.
  • MEDIUMGHSA-q686-2qmg-hqc7 CVE-2026-114619 PYSEC-2026-4359Authlib: OpenID implicit grant checks raw scope instead of allowed scope before issuing ID tokens
  • MEDIUMGHSA-x4rv-c3wx-4cr8 CVE-2026-114620 PYSEC-2026-4360Authlib: Unvalidated request_uri fetch in JWT-secured authorization request (JAR) leading to SSRF
  • MEDIUMPYSEC-2026-4354 CVE-2026-114614 GHSA-jj7h-c3hg-m23xAuthlib is a Python library which builds OAuth and OpenID Connect servers. From 0.13 until 1.8.0, authlib.common.security.is_secure_transport() uses a textual prefix comparison for loopback HTTP exemptions, so a URL whose userinfo begins with a loopback host can be accepted even when its parsed host is an external non-loopback system. An external party able to supply a URL to OIDC RP-Initiated Logout registration, authorization-server metadata validation, or another call site can bypass the TLS-required guard and cause cleartext redirection or acceptance of cleartext endpoints. The issue does not bypass redirect URI exact matching and does not by itself forge tokens or authenticate users. The vulnerable authlib.common.security.is_secure_transport() implementation in authlib/common/security.py misinterprets the userinfo component before OIDC RP-Initiated Logout dynamic client registration and other consumers enforce transport security. This issue is fixed in version 1.8.0.
  • MEDIUMGHSA-fch4-3c6x-j4gc CVE-2026-114618 PYSEC-2026-4358Authlib: Default JWT bearer grant accepts assertions for the wrong audience
  • MEDIUMPYSEC-2026-4358 CVE-2026-114618 GHSA-fch4-3c6x-j4gcAuthlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, the default RFC 7523 JWTBearerGrant.get_audiences() returns an empty list, causing JWTBearerGrant.verify_claims() to require only that an aud claim exists without matching the current authorization server. An attacker holding a legitimate assertion for another service can present it to a server that shares the signing key and uses the default grant, obtaining an access token across a trust boundary. Implementations that override get_audiences() with the server's valid audience identifiers are not affected. This issue is fixed in version 1.9.0.
  • MEDIUMPYSEC-2026-4359 CVE-2026-114619 GHSA-q686-2qmg-hqc7Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, OpenIDImplicitGrant.validate_authorization_request() checks the client-controlled raw request.payload.scope for openid after the parent grant has filtered allowed scopes into request.scope. A registered client permitted an ID token response type but not the openid scope can add openid to the request, obtain user consent, and receive a signed ID token containing the user's subject and allowed profile claims. Authorization code flow and deployments that allow openid for every client permitted an ID token response are not affected. In authlib/oidc/core/grants/implicit.py, OpenIDImplicitGrant.validate_authorization_request() checks request.payload.scope instead of the filtered request.scope. This issue is fixed in version 1.9.0.
  • MEDIUMGHSA-c5mf-xmp2-59rc CVE-2026-114617 PYSEC-2026-4357Authlib: ID token can disable its own nonce validation via the nonce_supported claim
  • MEDIUMPYSEC-2026-4360 CVE-2026-114620 GHSA-x4rv-c3wx-4cr8Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, Authlib's RFC 9101 JWTAuthenticationRequest passes the unauthenticated, client-controlled request_uri parameter to the abstract get_request_object() hook before applying a destination or registration policy; the hook itself performs no network request, while the documentation demonstrates an unrestricted HTTP fetch. In deployments whose integrator implements that hook as an unrestricted outbound fetch, a remote attacker who knows a valid public client identifier can make the authorization server request internal, link-local, or otherwise unintended URLs and can distinguish fetch outcomes through different error responses and timing. Deployments whose custom hook already applies a secure allowlist, destination controls, and retrieval limits are not affected. The JWTAuthenticationRequest implementation in authlib/oauth2/rfc9101/authorization_server.py forwards request_uri to get_request_object() before an application-approved retrieval policy accepts the destination. This issue is fixed in version 1.9.0.
  • MEDIUMPYSEC-2026-4355 CVE-2026-114615 GHSA-7vr2-2fgp-9w7pAuthlib is a Python library which builds OAuth and OpenID Connect servers. From 1.3.1 until 1.9.0, OctKey.import_key() checks asymmetric-key markers only at byte zero while Authlib's PEM loaders accept leading whitespace, comments, or a byte-order mark. In deployments that use the documented mixed algorithm registry and already configure verification with PEM or certificate bytes containing such a prefix, an unauthenticated attacker who knows those same public-key bytes can use them as an HMAC secret and forge HS256 tokens with arbitrary identity or authorization claims. This is a bypass of the remediation for CVE-2024-37568. The module-level jwt object reaches OctKey.import_key() in authlib/jose/rfc7518/oct_key.py, where POSSIBLE_UNSAFE_KEYS fails to identify prefixed asymmetric key material. This issue is fixed in version 1.9.0.
  • MEDIUMPYSEC-2026-4357 CVE-2026-114617 GHSA-c5mf-xmp2-59rcAuthlib is a Python library which builds OAuth and OpenID Connect servers. Prior to 1.9.0, OpenIDMixin.parse_id_token() reads the nonce_supported decision from the untrusted ID token being validated and sets the expected nonce to null when that claim is the JSON boolean false. In implicit and hybrid relying parties, or applications that directly accept externally supplied ID tokens, an attacker with a captured validly signed token can bypass the nonce-to-session binding and replay the victim's token into an attacker-controlled session. Plain authorization code flow is not affected, and the token must still pass signature, issuer, and audience validation. OpenIDMixin.parse_id_token() trusts nonce_supported in both authlib/integrations/base_client/sync_openid.py and authlib/integrations/base_client/async_openid.py to disable the expected nonce. This issue is fixed in version 1.9.0.
  • LOWGHSA-jj7h-c3hg-m23x CVE-2026-114614 PYSEC-2026-4354Authlib: is_secure_transport() loopback exemption can be bypassed with a userinfo component, allowing cleartext-HTTP URLs to non-loopback hosts
anyioPyPI 4.14.1 CRITICAL 6 advisories 4.14.2
  • CRITICALGHSA-82r6-8w77-94w6 CVE-2026-63374 PYSEC-2026-4025AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
  • HIGHGHSA-3w57-8xmc-8v26 CVE-2026-63349 PYSEC-2026-4023AnyIO run_process/open_process ignores extra_groups and can retain parent supplementary groups
  • MEDIUMPYSEC-2026-4025 CVE-2026-63374 GHSA-82r6-8w77-94w6AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
  • MEDIUMPYSEC-2026-4023 CVE-2026-63349 GHSA-3w57-8xmc-8v26AnyIO run_process/open_process ignores extra_groups and can retain parent supplementary groups
  • MEDIUMGHSA-5p39-cfhj-2xmp CVE-2026-64847 PYSEC-2026-4024AnyIO process-pool workers can block indefinitely on undrained stderr
  • MEDIUMPYSEC-2026-4024 CVE-2026-64847 GHSA-5p39-cfhj-2xmpAnyIO process-pool workers can block indefinitely on undrained stderr
certifiPyPI 2026.6.17 CRITICAL 2 advisories 2026.10.18
  • CRITICALGHSA-6q48-6c7w-9gw2 PYSEC-2026-4320certifi bundles emSign root CAs with compromised intermediate CA keys
  • MEDIUMPYSEC-2026-4320 GHSA-6q48-6c7w-9gw2certifi bundles emSign root CAs with compromised intermediate CA keys
mcpPyPI 1.28.1 HIGH 5 advisories 1.30.02.2.0
  • HIGHGHSA-qx49-fqc8-xw99 CVE-2026-115563Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
  • MEDIUMGHSA-84m7-p3x7-pcfv CVE-2026-59951MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
  • MEDIUMGHSA-rwrf-2pqf-9j8j CVE-2026-116686Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas
  • MEDIUMGHSA-5h93-6whr-6q8j CVE-2026-116685Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies
  • MEDIUMGHSA-w4fh-qvv9-3v23 CVE-2026-116684Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server
cryptographyPyPI 49.0.0 HIGH 2 advisories 50.0.0
  • HIGHGHSA-g6cj-pr64-35w5 CVE-2026-69247 PYSEC-2026-3552cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing
  • MEDIUMPYSEC-2026-3552 CVE-2026-69247 GHSA-g6cj-pr64-35w5cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing
dnspythonPyPI 2.8.0 HIGH 2 advisories 2.9.02.9.2
joserfcPyPI 1.7.1 HIGH 2 advisories 1.7.51.7.6
  • HIGHGHSA-jpxq-7h8p-2q76 CVE-2026-119283joserfc: Unbounded JWE General JSON `recipients` Array Leads to CPU Exhaustion (DoS) via Repeated RSA Private-Key Decryption
  • MEDIUMGHSA-9pg5-8c7x-5hfx CVE-2026-119284joserfc: Compact JWS size guard allocates attacker-controlled segments before rejection
restrictedpythonPyPI 8.3 HIGH 2 advisories 8.4
  • HIGHGHSA-hp3v-5vw7-fx9w CVE-2026-76825 PYSEC-2026-4161RestrictedPython vulnerable to sandbox escape via string.Formatter field resolution
  • MEDIUMPYSEC-2026-4161 CVE-2026-76825 GHSA-hp3v-5vw7-fx9wRestrictedPython vulnerable to sandbox escape via string.Formatter field resolution
opentelemetry-apiPyPI 1.43.0 MEDIUM 2 advisories 1.45.11.45.2
  • MEDIUMGHSA-mf5v-w3w3-f6cg CVE-2026-126360OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing
  • MEDIUMGHSA-xcq7-p3pf-p88h CVE-2026-114603OpenTelemetry Python: Unbounded tracestate parsing in opentelemetry-api
fastmcpPyPI 3.4.2 MEDIUM 1 advisory 3.4.104.1.2
  • MEDIUMGHSA-7xgj-8392-5q4rFastMCP: Post-transform component authorization is skipped on direct calls
fastmcp-slimPyPI 3.4.2 MEDIUM 1 advisory 3.4.104.1.2
  • MEDIUMGHSA-7xgj-8392-5q4rFastMCP: Post-transform component authorization is skipped on direct calls
2 vulnerable packages outside the server itself (used only for development, tests or examples, not shipped)
PackageInstalledWorstAdvisoriesFixed in
virtualenvPyPI 21.5.1 HIGH 36 advisories 21.7.1121.7.1221.7.13+5 more
  • HIGHGHSA-94p9-xgh2-xp45 BIT-virtualenv-2026-102930 CVE-2026-102930 PYSEC-2026-4011virtualenv: Downloaded seed wheels (pip/setuptools) are not integrity-checked before use
  • HIGHGHSA-6w3r-xr62-4xcp BIT-virtualenv-2026-113723 CVE-2026-113723 PYSEC-2026-4382virtualenv: Bash prompt values can change meaning under older compatibility modes
  • HIGHGHSA-c978-59m8-c77v BIT-virtualenv-2026-113722 CVE-2026-113722 PYSEC-2026-4381virtualenv: Generated POSIX console launchers interpret destination paths as shell syntax
  • HIGHGHSA-p58f-9548-mpm2 BIT-virtualenv-2026-102925 CVE-2026-102925 PYSEC-2026-4013virtualenv bash and fish activation scripts execute commands embedded in paths
  • HIGHGHSA-8rjx-v5ww-45pp BIT-virtualenv-2026-113776 CVE-2026-113776 PYSEC-2026-4387virtualenv activation scripts run code from a path that contains a placeholder name
  • HIGHGHSA-5vjq-rrrf-7h2q BIT-virtualenv-2026-113726 CVE-2026-113726 PYSEC-2026-4385virtualenv activate runs commands from the environment name in zsh with PROMPT_SUBST
  • HIGHGHSA-394h-qwmc-48pf BIT-virtualenv-2026-113718 CVE-2026-113718 PYSEC-2026-4377virtualenv: Xonsh activation literals depend on the script decoding codec
  • HIGHGHSA-x78j-v8h9-3j2q BIT-virtualenv-2026-102937 CVE-2026-102937 PYSEC-2026-4014virtualenv: Command injection via --prompt in activate.bat (batch activator)
  • HIGHGHSA-c947-3pg5-gm8q BIT-virtualenv-2026-113732 CVE-2026-113732 PYSEC-2026-4386virtualenv activate.fish runs commands from a path or prompt with a backslash before a quote
  • HIGHGHSA-vxj4-q4g9-crj7 BIT-virtualenv-2026-113725 CVE-2026-113725 PYSEC-2026-4384virtualenv bash activate runs commands from an environment name with a backslash before $
  • MEDIUMPYSEC-2026-4386 BIT-virtualenv-2026-113732 CVE-2026-113732 GHSA-c947-3pg5-gm8qvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.2, FishActivator inherits ViaTemplateActivator.quote(), which uses POSIX shlex.quote() even though fish interprets backslashes and single quotes differently. An attacker-influenced environment path, --prompt, or VIRTUALENV_PROMPT value containing a backslash before a quote can therefore terminate the generated fish literal and execute command substitution when the user sources activate.fish. This issue is fixed in version 21.14.2.
  • MEDIUMPYSEC-2026-4011 BIT-virtualenv-2026-102930 CVE-2026-102930 GHSA-94p9-xgh2-xp45Downloaded seed wheels (pip/setuptools) are not integrity-checked before use
  • MEDIUMPYSEC-2026-4382 BIT-virtualenv-2026-113723 CVE-2026-113723 GHSA-6w3r-xr62-4xcpvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, caller-supplied prompt text can become executable syntax in the bash activation prompt. An attacker must influence the value passed to virtualenv, and a user must subsequently activate the environment and draw the prompt. This vulnerability is fixed in 21.14.9.
  • MEDIUMPYSEC-2026-4384 BIT-virtualenv-2026-113725 CVE-2026-113725 GHSA-vxj4-q4g9-crj7virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.7, the bash activate script escapes the environment name for only one of the two passes bash makes over PS1, so a backslash in the name undoes the escaping and a name containing \\$(...) runs as commands in the user's shell each time bash draws the prompt. This issue is fixed in version 21.14.7.
  • MEDIUMPYSEC-2026-4378 BIT-virtualenv-2026-113719 CVE-2026-113719 GHSA-hhxq-47xx-j5xxvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, PipInstall._uninstall_previous_version() accepts existing seed-package metadata and _uninstall_dist() joins entries from top_level.txt and RECORD to site-packages without checking containment. When a reused destination contains distribution metadata influenced by another account, relative traversal, absolute entries, or linked parents can cause app-data reseeding to delete files outside the environment or the environment root with the invoking user's permissions, provided that user has deletion rights over the named paths. The deletion occurs during environment creation before any later use of the environment. Fresh environments without existing package metadata and creation with --clear do not enter this cleanup path. This issue is fixed in version 21.14.9.
  • MEDIUMGHSA-cw65-gx24-rc82 BIT-virtualenv-2026-113716 CVE-2026-113716 PYSEC-2026-4375virtualenv: Builtin creation follows linked environment directories
  • MEDIUMGHSA-558c-9hv2-4prj BIT-virtualenv-2026-113721 CVE-2026-113721 PYSEC-2026-4380virtualenv: Generated files can follow existing destination links
  • MEDIUMPYSEC-2026-4014 BIT-virtualenv-2026-102937 CVE-2026-102937 GHSA-x78j-v8h9-3j2qCommand injection via --prompt in activate.bat (batch activator)
  • MEDIUMPYSEC-2026-4379 BIT-virtualenv-2026-113720 CVE-2026-113720 GHSA-fc2g-4w5p-6whmvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the app-data copy seeder uses shutil.copy() to copy cached package files into later environments, causing cached source modes to override the current run's umask. A cache populated under a permissive umask can therefore produce files writable by another local account in a later traversable environment, allowing package code such as pip/__init__.py to be modified and executed by the environment owner. The attacker cannot force the earlier umask, and a private destination parent prevents access. This issue is fixed in version 21.14.9.
  • MEDIUMPYSEC-2026-4387 BIT-virtualenv-2026-113776 CVE-2026-113776 GHSA-8rjx-v5ww-45ppvirtualenv is a tool for creating isolated virtual python environments. From 20.26.6 until 21.14.2, ViaTemplateActivator.instantiate_template() replaces placeholders one key at a time across the complete activation template, so trigger names such as __VIRTUAL_NAME__, __VIRTUAL_ENV__, or __VIRTUAL_PROMPT__ inside an already substituted and quoted environment path or prompt can be replaced during a later pass. The later value's quoting can close the earlier literal and execute the remaining path when a user activates the environment through bash, fish, xonsh, or activate_this.py. The distinct csh prompt-display token __VIRTUAL_PROMPT_DISPLAY_TCSH__ can instead break the generated script without establishing command execution. The attacker must influence the destination path or --prompt, and a value without a relevant placeholder name does not trigger this mechanism. This issue is fixed in version 21.14.2.
  • MEDIUMPYSEC-2026-4381 BIT-virtualenv-2026-113722 CVE-2026-113722 GHSA-c978-59m8-c77vvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, virtualenv's ScriptMakerCustom and pip pass an incompletely quoted interpreter path to distlib ScriptMaker when generating POSIX console scripts. When the path contains a space or produces a shebang longer than 127 bytes, distlib emits a /bin/sh wrapper whose double-quoted interpreter path still expands command substitutions and backticks. An attacker who influences the environment destination can therefore execute commands with the user's privileges when the user later runs a generated launcher; environment creation and activation do not trigger the command. Existing launchers are not repaired by upgrading virtualenv alone and must be regenerated, while a later independent pip installation or upgrade can reintroduce an affected launcher because pip's vendored distlib is unchanged. The virtualenv fix is released in version 21.14.9.
  • MEDIUMPYSEC-2026-4372 BIT-virtualenv-2026-113713 CVE-2026-113713 GHSA-4f8h-vr72-p32cvirtualenv is a tool for creating isolated virtual python environments. From 21.14.8 until 21.14.10, the app-data seeder can leave an environment linked to temporary package files that virtualenv deletes when creation finishes. The environment-variable and configuration-file forms of symlink_app_data can enable this state even though the command-line flag is disabled for temporary app-data. The resulting environment depends on a cache pathname that its owner no longer controls. This issue is fixed in version 21.14.10.
  • MEDIUMGHSA-43mp-35q3-x3fq BIT-virtualenv-2026-113724 CVE-2026-113724 PYSEC-2026-4383virtualenv: Deletion recovery can change a symlink target's mode
  • MEDIUMGHSA-hhxq-47xx-j5xx BIT-virtualenv-2026-113719 CVE-2026-113719 PYSEC-2026-4378virtualenv: Seed replacement does not contain metadata deletion paths
  • MEDIUMPYSEC-2026-4013 BIT-virtualenv-2026-102925 CVE-2026-102925 GHSA-p58f-9548-mpm2virtualenv bash and fish activation scripts execute commands embedded in paths
  • MEDIUMGHSA-9h9j-4vrj-gf7g BIT-virtualenv-2026-102938 CVE-2026-102938 PYSEC-2026-4012virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection
  • MEDIUMPYSEC-2026-4012 BIT-virtualenv-2026-102938 CVE-2026-102938 GHSA-9h9j-4vrj-gf7gvirtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection
  • MEDIUMPYSEC-2026-4377 BIT-virtualenv-2026-113718 CVE-2026-113718 GHSA-394h-qwmc-48pfvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, POSIX xonsh activation quote() uses repr() to write printable non-ASCII prompt or destination data into UTF-8 activate.xsh, while xonsh can read that script using $XONSH_ENCODING. Under a legacy multibyte codec such as GBK or Big5, a UTF-8 trail byte can consume the backslash before an adjacent quote, allowing the literal to close and attacker-influenced statements to execute when the user sources the generated script. This issue is fixed in version 21.14.9.
  • MEDIUMPYSEC-2026-4385 BIT-virtualenv-2026-113726 CVE-2026-113726 GHSA-5vjq-rrrf-7h2qvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.13.0, the bash activate script that zsh also sources leaves the environment name unescaped; from 21.13.0 until 21.14.4, it escapes backslashes, dollar signs, and backticks only when BASH_VERSION is set, so zsh receives the raw value. The script assigns that value to PS1. In zsh with PROMPT_SUBST, an attacker-influenced environment directory, --prompt, or VIRTUALENV_PROMPT value containing command, parameter, or arithmetic expansion syntax can therefore execute commands in the user's shell each time the prompt is drawn. A percent sign is separately interpreted as a zsh prompt escape but does not by itself execute commands. Plain zsh with PROMPT_SUBST disabled and bash are not affected by this mechanism. This issue is fixed in version 21.14.4.
  • MEDIUMPYSEC-2026-4375 BIT-virtualenv-2026-113716 CVE-2026-113716 GHSA-cw65-gx24-rc82virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the builtin creator calls ensure_dir() for executable, library, and package directories, and ensure_dir() accepts an existing symlink to a directory because exists() follows it. Interpreter creation, seed installation, and activation generation then write through the linked parent outside the requested destination when another local account prepared the tree and the invoking user can access the target. The --clear option removes the planted tree first, while ordinary creation reaches it; arbitrary attacker-selected output bytes are not established. This issue is fixed in version 21.14.9.
  • MEDIUMPYSEC-2026-4380 BIT-virtualenv-2026-113721 CVE-2026-113721 GHSA-558c-9hv2-4prjvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, ViaTemplateActivator._generate() removes an existing output only when Path.exists() is true, allowing a dangling symlink to survive and redirect generated activation content, while PyEnvCfg.write() opens pyvenv.cfg without first replacing an existing symbolic or hard link. Another local account that prepares final entries inside the destination can therefore cause environment creation to create or overwrite files outside the requested tree with constrained virtualenv-generated content and the invoking user's permissions. The destination parent must remain controlled by the environment owner during creation; concurrent parent-directory replacement is a separate concern. This issue is fixed in version 21.14.9.
  • MEDIUMGHSA-fc2g-4w5p-6whm BIT-virtualenv-2026-113720 CVE-2026-113720 PYSEC-2026-4379virtualenv: Seeded files retain permissions from an older cache
  • MEDIUMPYSEC-2026-4374 BIT-virtualenv-2026-113715 CVE-2026-113715 GHSA-qmx5-4p3x-wvqfvirtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the stdlib venv creator reads generated pyvenv.cfg with str.splitlines() and merges parsed keys over virtualenv's selected configuration. An untrusted caller who influences the destination pathname can include a line-boundary character such as U+2028 to inject keys including home and include-system-site-packages, causing path data to change configuration structure before final output. Setting include-system-site-packages to true weakens environment isolation, while an altered home can change which standard-library files the interpreter loads if the attacker also controls that location. The builtin creator does not use this readback path. This issue is fixed in version 21.14.9.
  • LOWGHSA-494p-63j8-28p3 BIT-virtualenv-2026-113714 CVE-2026-113714 PYSEC-2026-4373virtualenv: Downloaded wheel selection and caching precede verification
  • LOWGHSA-qmx5-4p3x-wvqf BIT-virtualenv-2026-113715 CVE-2026-113715 PYSEC-2026-4374virtualenv: Venv configuration readback can reinterpret path boundaries
  • LOWGHSA-cx28-75q4-x26q BIT-virtualenv-2026-113717 CVE-2026-113717 PYSEC-2026-4376virtualenv: Pip seeding with download omits wheel digest verification
filelockPyPI 3.29.4 HIGH 9 advisories 4.0.94.2.1
  • HIGHGHSA-v4x8-3wr5-3wq8 CVE-2026-112940filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files
  • MEDIUMGHSA-8mx5-7m5m-r77g CVE-2026-112910filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACL
  • MEDIUMGHSA-fq56-3cx3-fjxp CVE-2026-112935filelock: SoftFileLock stale-lock break removes a live lock file on a reused inode number and admits two holders
  • MEDIUMGHSA-69hj-f68j-2879 CVE-2026-112909filelock: UnixFileLock truncates and chmods any regular file another user renames or hard-links onto the lock path
  • MEDIUMGHSA-cwqr-hh33-gh44 CVE-2026-112915filelock ReadWriteLock: a crafted lock database makes every acquire stall or hang regardless of timeout
  • MEDIUMGHSA-j8f7-rjxc-mr56 CVE-2026-112936filelock: ReadWriteLock follows a symlink at the lock path into SQLite
  • MEDIUMGHSA-rfpc-qcw5-3pc4 CVE-2026-112939filelock: SoftFileLock removes a live holder's marker when another user forges the PID in a writable marker
  • LOWGHSA-9vhv-jxww-xfm5 CVE-2026-112913filelock: ReadWriteLock on Windows acts on SQLite side files another local user places beside its database
  • LOWGHSA-567q-5qvw-pf92 CVE-2026-112907filelock: On Windows an oplock on a soft lock's marker holds SoftFileLock.acquire() past its timeout and blocks the stale break

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-09-18
Signed releasesnot checked yet

Where it is published

Listed in3 catalogs (github_search, glama, mcp_toplist)
LicenseApache-2.0
Created2026-03-14

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.