/** * @fileoverview Screenshot tool — capture full screen, display, window, or region. * @module mcp-server/tools/definitions/macos-take-screenshot */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const macosTakeScreenshot: import("@cyanheads/mcp-ts-core").ToolDefinition; app_name: z.ZodOptional; display_index: z.ZodOptional; region: z.ZodOptional>; path: z.ZodOptional; include_data: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ path: z.ZodString; width: z.ZodNumber; height: z.ZodNumber; preview: z.ZodOptional; preview_width: z.ZodOptional; preview_height: z.ZodOptional; }, z.core.$strip>, readonly [{ readonly reason: "screen_recording_required"; readonly code: JsonRpcErrorCode.Forbidden; readonly when: "target=window called without Screen Recording permission."; readonly recovery: "Grant Screen Recording in System Settings > Privacy & Security > Screen Recording for your terminal or MCP host app."; readonly thrownBy: "service"; }, { readonly reason: "window_not_found"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "No visible window for the named app is found."; readonly recovery: "Ensure the app is running and not minimized, then retry."; readonly thrownBy: "service"; }, { readonly reason: "display_not_found"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "display_index references a display not in the current configuration."; readonly recovery: "Call macos_manage_displays with action=list to see available displays."; readonly thrownBy: "service"; }, { readonly reason: "path_not_writable"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "The target path or MACOS_SCREENSHOT_DIR does not exist or is not writable."; readonly recovery: "Provide a writable absolute path, or ensure MACOS_SCREENSHOT_DIR exists."; readonly thrownBy: "service"; }], undefined>; //# sourceMappingURL=macos-take-screenshot.tool.d.ts.map