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

Function readClipboardImageFilePath

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

Source from the content-addressed store, hash-verified

547 * Returns the file path if it's an image file, null otherwise.
548 */
549export function readClipboardImageFilePath(): string | null {
550 const filePath = readClipboardFilePath()
551 if (filePath && isImageFile(filePath)) {
552 return filePath
553 }
554 return null
555}
556
557/**
558 * Read text from clipboard. Returns null if reading fails.

Callers 1

createPasteHandlerFunction · 0.90

Calls 2

isImageFileFunction · 0.90
readClipboardFilePathFunction · 0.85

Tested by

no test coverage detected