Skip to main content
Glama
eva-wanxin-git

Windows Automation MCP Server

list_processes

Lists running Windows processes to monitor system activity, identify resource usage, and manage applications. Use optional filters to find specific processes by name.

Instructions

列出正在运行的进程

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterNo过滤进程名(可选)

Implementation Reference

  • The handler function for list_processes tool. Executes 'tasklist' command to list processes, parses CSV output, applies optional filter, and returns the list with success status.
    async listProcesses(filter = '') { try { const { stdout } = await execAsync('tasklist /FO CSV /NH'); const lines = stdout.trim().split('\n'); const processes = lines.map(line => { const parts = line.split(',').map(p => p.replace(/"/g, '')); return { name: parts[0], pid: parts[1], memory: parts[4], }; }); const filtered = filter ? processes.filter(p => p.name.toLowerCase().includes(filter.toLowerCase())) : processes; return { success: true, processes: filtered, count: filtered.length }; } catch (error) { return { success: false, error: error.message }; } }
  • Schema definition for the list_processes tool, including name, description, and input schema allowing optional filter string.
    { name: 'list_processes', description: '列出正在运行的进程', inputSchema: { type: 'object', properties: { filter: { type: 'string', description: '过滤进程名(可选)' }, }, }, },
  • Registration and dispatch logic in the executeTool method's switch statement, routing 'list_processes' calls to the listProcesses handler.
    case 'list_processes': return await this.listProcesses(args.filter);

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/eva-wanxin-git/windows-automation-mcp'

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