idapython
Python Execution SQL Functions
| Function | Description |
|---|---|
idapython_snippet(code[, sandbox]) |
Execute Python snippet and return captured output text |
idapython_file(path[, sandbox]) |
Execute Python file and return captured output text |
Runtime Guard
Python execution is disabled by default. Enable it with:
PRAGMA idasql.enable_idapython = 1;
Examples
More from allthingsida/idasql-skills
disassembly
Query IDA disassembly. Use when asked about functions, segments, instructions, blocks, operands, control flow, or raw code structure.
15decompiler
Decompile and analyze IDA functions. Use when asked for pseudocode, ctree AST analysis, local variables, labels, or decompiler-driven cleanup.
14xrefs
Analyze IDA cross-references. Use when asked about callers, callees, imports, data refs, call graphs, or dependency chains.
13debugger
IDA debugger operations. Use when asked to set breakpoints, patch bytes, add conditions, or manage a patch inventory.
13storage
Persistent key-value storage in IDA databases. Use when asked to store metadata, track progress, or persist session state via netnode_kv.
13ui-context
Capture live IDA UI context. Use when the user references what's on screen, what's selected, or asks about the current view in IDA's GUI.
13