MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / getLastCopiedContent

Method getLastCopiedContent

src/main/api/renderer/system.ts:94–105  ·  view source on GitHub ↗
(timeLimit?: number)

Source from the content-addressed store, hash-verified

92 }
93
94 private async getLastCopiedContent(timeLimit?: number): Promise<{
95 type: 'text' | 'image' | 'file'
96 data: string | Array<{ path: string; name: string; isDirectory: boolean }>
97 timestamp: number
98 } | null> {
99 try {
100 return await clipboardManager.getLastCopiedContent(timeLimit)
101 } catch (error) {
102 console.error('[System] 获取最后复制内容失败:', error)
103 return null
104 }
105 }
106
107 private async getFrontmostApp(): Promise<{
108 name: string

Callers 2

setupIPCMethod · 0.95
onMouseTriggerAsyncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected