MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / hasClipboardImage

Function hasClipboardImage

cli/src/utils/clipboard-image.ts:276–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274 * Check if clipboard contains an image (cross-platform)
275 */
276export function hasClipboardImage(): boolean {
277 const platform = process.platform
278
279 switch (platform) {
280 case 'darwin':
281 return hasImageMacOS()
282 case 'linux':
283 return hasImageLinux()
284 case 'win32':
285 return hasImageWindows()
286 default:
287 return false
288 }
289}
290
291/**
292 * Read image from clipboard and save to temp file

Callers 2

createPasteHandlerFunction · 0.90
dispatchActionFunction · 0.90

Calls 3

hasImageMacOSFunction · 0.85
hasImageLinuxFunction · 0.85
hasImageWindowsFunction · 0.85

Tested by

no test coverage detected