Skip to main content
Glama

Current operating environment

getPrinterInfo

Retrieve detailed printer information from the current operating environment to monitor and manage device configurations efficiently.

Instructions

获取当前设备的打印机信息

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

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

Implementation Reference

  • Handler function for the getPrinterInfo tool. It uses the systeminformation library (si.printer()) to fetch printer information and returns it as JSON text.
    case "getPrinterInfo": { const printerInfo = await si.printer(); return { content: [{ type: "text", text: JSON.stringify(printerInfo, null, 2) }] }; }
  • src/index.ts:244-252 (registration)
    Tool registration in the listTools response, including name, description, and input schema (empty object).
    { name: "getPrinterInfo", description: "获取当前设备的打印机信息", inputSchema: { type: "object", properties: {}, required: [] } },
  • Input schema for getPrinterInfo tool: accepts no 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