Skip to main content
Glama

get_process_by_name

Locate running processes on mobile or desktop devices by specifying a process name or partial name for dynamic instrumentation and analysis.

Instructions

Find a process by name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name (or part of the name) of the process to find. Case-insensitive.
device_idNoOptional ID of the device to search the process on. Uses smart selection when omitted.

Implementation Reference

  • The core handler function for the 'get_process_by_name' tool, decorated with @mcp.tool() for automatic registration in FastMCP. It resolves the device, enumerates processes, and searches for a matching process name (case-insensitive partial match). Returns process details if found, or an error message.
    @mcp.tool() def get_process_by_name( name: str = Field( description="The name (or part of the name) of the process to find. Case-insensitive." ), device_id: Optional[str] = Field( default=None, description="Optional ID of the device to search the process on. Uses smart selection when omitted.", ), ) -> dict: """Find a process by name.""" device = _resolve_device_or_raise(device_id) for proc in device.enumerate_processes(): if name.lower() in proc.name.lower(): return {"pid": proc.pid, "name": proc.name, "found": True} return {"found": False, "error": f"Process '{name}' not found"}

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rmorgans/frida-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server