attach_to_process
Attach to a running process by its ID to enable dynamic instrumentation and runtime analysis using Frida's capabilities for mobile and desktop applications.
Instructions
Attach to a process by ID.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
device_id | No | Optional ID of the device where the process is running. Uses smart selection when omitted. | |
pid | Yes | The ID of the process to attach to. |
Input Schema (JSON Schema)
{
"properties": {
"device_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional ID of the device where the process is running. Uses smart selection when omitted.",
"title": "Device Id"
},
"pid": {
"description": "The ID of the process to attach to.",
"title": "Pid",
"type": "integer"
}
},
"required": [
"pid"
],
"type": "object"
}