Skip to main content
Glama

Current operating environment

getProcesses

Retrieve detailed process information from the current operating environment to monitor and analyze system activity effectively.

Instructions

获取当前设备的进程信息

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • The handler function for the 'getProcesses' tool. It uses the systeminformation library (si.processes()) to retrieve current system processes and returns the data as a JSON-formatted text response.
    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 its name, description, and empty input schema (no parameters required).
    { name: "getProcesses", description: "获取当前设备的进程信息", inputSchema: { type: "object", properties: {}, required: [] } },
  • Input schema for 'getProcesses' tool, which is an empty object (no input parameters).
    inputSchema: { type: "object", properties: {}, required: [] }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JackXuyi/env-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server