getProcesses
Retrieve active process information from the current operating environment to monitor system activity and identify running applications.
Instructions
获取当前设备的进程信息
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": "getProcesses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:651-659 (handler)The handler function for the 'getProcesses' tool. It uses the 'systeminformation' library (si.processes()) to fetch current system processes and returns them as a JSON string in the tool response format.
case "getProcesses": { const processes = await si.processes(); return { content: [{ type: "text", text: JSON.stringify(processes, null, 2) }] }; } - src/index.ts:208-216 (registration)Registration of the 'getProcesses' tool in the listTools response, including name, description, and empty input schema.
{ name: "getProcesses", description: "获取当前设备的进程信息", inputSchema: { type: "object", properties: {}, required: [] } }, - src/index.ts:211-215 (schema)Input schema for the 'getProcesses' tool, which expects no parameters.
inputSchema: { type: "object", properties: {}, required: [] }