Skip to main content
Glama
JackXuyi

Current operating environment

getPrinterInfo

Retrieve printer details from your current operating environment to identify available devices and their configurations.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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