list_functions
Extract function names from a loaded binary to identify executable components for reverse-engineering analysis.
Instructions
List all function 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_functions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:67-72 (handler)The core handler function for the 'list_functions' tool. It checks if the Ghidra context is ready and returns a list of function names from the loaded binary context.
@mcp.tool() async def list_functions() -> list[str]: """List all function 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("functions", [])]