MCPcopy Create free account
hub / github.com/Roy3838/Observer / captureScreenImage

Function captureScreenImage

app/src/utils/screenCapture.ts:63–66  ·  view source on GitHub ↗
(_stream: MediaStream, agentId?: string, streamType?: 'camera' | 'screen')

Source from the content-addressed store, hash-verified

61 * @returns The raw Base64 string (without the data URI prefix) or null on failure.
62 */
63export async function captureScreenImage(_stream: MediaStream, agentId?: string, streamType?: 'camera' | 'screen'): Promise<string | null> {
64 const type = streamType || 'screen';
65 return StreamManager.captureFrame(type, agentId);
66}

Callers 1

pre-processor.tsFile · 0.90

Calls 1

captureFrameMethod · 0.80

Tested by

no test coverage detected