list_hooks
Display all installed persistent hooks with their names and indices to review active Frida hooks during Android security testing.
Instructions
List all installed persistent hooks with their names and indices
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/frida_mcp/hooks.py:147-150 (handler)The actual implementation of list_hooks: retrieves the current Frida session and returns a list of all installed persistent hooks with their names and indices.
def list_hooks() -> list[dict]: """List all installed persistent hooks.""" fs = get_session() return [{"name": h["name"], "index": i} for i, h in enumerate(fs.persistent_scripts)] - src/frida_mcp/tools.py:300-304 (registration)The MCP Tool definition registering 'list_hooks' with description and empty input schema.
Tool( name="list_hooks", description="List all installed persistent hooks with their names and indices", inputSchema={"type": "object", "properties": {}, "required": []}, ), - src/frida_mcp/server.py:120-121 (registration)The call_tool dispatcher that routes 'list_hooks' to hooks.list_hooks().
elif name == "list_hooks": return hooks.list_hooks() - src/frida_mcp/hooks.py:147-150 (helper)list_hooks calls get_session() to obtain the current FridaSession (from session module) and reads fs.persistent_scripts to build the result list.
def list_hooks() -> list[dict]: """List all installed persistent hooks.""" fs = get_session() return [{"name": h["name"], "index": i} for i, h in enumerate(fs.persistent_scripts)] - src/frida_mcp/tools.py:303-304 (schema)Input schema for list_hooks: empty object with no required properties (takes no arguments).
inputSchema={"type": "object", "properties": {}, "required": []}, ),