open_process
Attach to a process by PID or name to get a session ID for reading, writing, and scanning its memory with other PyMemoryEditor tools.
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. Processes the policy denies are never among
them, just as list_processes omits them.
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.
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": "open_process"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| name | No |