IDA API Lookup
Look up IDA SDK API documentation using the ida-sdk-workflow MCP tools. Operates in three modes depending on what the user asks for.
Mode 1: Named API lookup
When the user asks about a specific function, struct, or class by name:
code
get_api_doc("<name>")
Examples:
- •"what does
get_funcdo?" →get_api_doc("get_func") - •"tell me about
xrefblk_t" →get_api_doc("xrefblk_t") - •"what is
cfunc_t?" →get_api_doc("cfunc_t")
Then call list_related_apis to show what's commonly used alongside it:
code
list_related_apis("<name>")
Present results as:
- •The API's signature, parameters, and return type
- •A brief description of what it does
- •Related APIs that are commonly used with it
Mode 2: Related APIs
When the user asks "what APIs are related to X" or "what else do I need with X":
code
list_related_apis("<name>")
Then call get_api_doc on the top results to provide full details.
Mode 3: Task-based search
When the user describes a task rather than naming a specific API:
code
get_workflows("<task description>")
Then call get_api_doc on each API in the returned workflow to provide full documentation.
Examples:
- •"how do I iterate segments?" →
get_workflows("iterate over segments") - •"how to get imports?" →
get_workflows("enumerate file imports")
Present results as:
- •The recommended call sequence with data-flow dependencies
- •Brief docs for each API in the sequence
- •Source file where the pattern was found