list_function_definitions
Extract function names from binary files to analyze program structure and identify key routines during reverse engineering.
Instructions
List all function definition names from the loaded binary.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_function_definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:118-123 (handler)Handler function for the 'list_function_definitions' MCP tool. Decorated with @mcp.tool() for automatic registration. Returns list of function definition names from the loaded Ghidra binary context.
@mcp.tool() async def list_function_definitions() -> list[str]: """List all function definition names from the loaded binary.""" if not ctx_ready: return ["❌ Context not ready. Run `setup_context()` first."] return [f["name"] for f in ctx.get("data_types", {}).get("function_definitions", [])]