open_process
Attach to a running process by PID or name and get a session ID for other memory tools. If multiple processes match, candidate PIDs are returned for selection.
Instructions
Attach to a process and return a session_id for the other tools.
:param pid: the process id to open. Preferred — it is unambiguous.
:param name: a process name (or fragment) to resolve instead, matched
case-insensitively as a substring. When several processes match,
no process is opened and the candidates are returned for you to
pick a pid from.
Pass exactly one of the two. The returned session stays open until
close_process or server shutdown; reuse its id rather than
reopening the same target, since each open costs a handle and resets
the cached region map.
At most max_open_sessions (see server_info) can be open at
once; reaching it is refused, not rotated, so close_process a
target you are done with.
Attaching to a process the operator has not pre-approved requires the user's approval, asked for at the moment you call this. Say which process you want and why; if the request is refused, report that rather than trying a different target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| name | No |