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

Function captureScreenImage

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

Source from the content-addressed store, hash-verified

79 * @returns The raw Base64 string (without the data URI prefix) or null on failure.
80 */
81export async function captureScreenImage(_stream: MediaStream, agentId?: string, streamType?: 'camera' | 'screen'): Promise<string | null> {
82 const type = streamType || 'screen';
83 return StreamManager.captureFrame(type, agentId);
84}

Callers 1

pre-processor.tsFile · 0.90

Calls 1

captureFrameMethod · 0.80

Tested by

no test coverage detected