Skip to main content
Glama
eva-wanxin-git

Windows Automation MCP Server

clear_clipboard

Clear sensitive or outdated data from your Windows clipboard to maintain privacy and prevent accidental pasting of unwanted content.

Instructions

清空剪贴板

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the clear_clipboard tool. It uses PowerShell to set the clipboard value to $null, effectively clearing it, and returns a success message or error.
    async clearClipboard() { try { await execAsync('powershell -Command "Set-Clipboard -Value $null"', { shell: 'powershell.exe' }); return { success: true, message: '剪贴板已清空' }; } catch (error) { return { success: false, error: error.message }; } }
  • The tool definition object that registers 'clear_clipboard' in the getToolDefinitions() method, including name, description, and empty input schema (no parameters required).
    { name: 'clear_clipboard', description: '清空剪贴板', inputSchema: { type: 'object', properties: {}, }, }, ];
  • The input schema definition for clear_clipboard, which is an empty object since no input parameters are required.
    inputSchema: { type: 'object', properties: {}, },
  • The switch case in executeTool() that dispatches calls to the clear_clipboard handler.
    case 'clear_clipboard': return await this.clearClipboard();
  • The tools array used in canHandle() to check if clear_clipboard is supported.
    const tools = ['get_clipboard', 'set_clipboard', 'clear_clipboard'];

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