get_process_tree
Retrieve a read-only parent-child process tree from a specified root PID, bounded by depth and node limits, to inspect Linux process relationships without modifying any process.
Instructions
READ-ONLY PROCESS TREE starting at root_pid.
The result is bounded by depth and node count. This cannot stop, kill, reprioritize, or otherwise modify any process.
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": "get_process_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_pid | No | Root PID for the returned parent-child tree; default 1 | |
| max_depth | No | Maximum child depth; root is depth 0; default 4. Pass an explicitly requested depth even when it is below the default. | |
| max_nodes | No | Hard cap on returned process nodes; default 256 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree | Yes | ||
| summary | Yes | ||
| root_pid | Yes | ||
| max_depth | Yes | ||
| truncated | Yes | ||
| captured_at | Yes | ||
| returned_nodes | Yes |