MCPcopy Index your code
hub / github.com/callstack/agent-device / snapshotLinux

Function snapshotLinux

src/platforms/linux/snapshot.ts:25–36  ·  view source on GitHub ↗
(surface: SessionSurface | undefined)

Source from the content-addressed store, hash-verified

23}
24
25export async function snapshotLinux(surface: SessionSurface | undefined): Promise<{
26 nodes: RawSnapshotNode[];
27 truncated?: boolean;
28}> {
29 const linuxSurface = resolveLinuxSurface(surface);
30 const result = await captureAccessibilityTree(linuxSurface);
31
32 return {
33 nodes: result.nodes,
34 truncated: result.truncated,
35 };
36}
37
38export async function readLinuxTextAtPoint(
39 x: number,

Callers 3

createLinuxInteractorFunction · 0.90
captureSnapshotDataFunction · 0.90
readLinuxTextAtPointFunction · 0.85

Calls 2

captureAccessibilityTreeFunction · 0.90
resolveLinuxSurfaceFunction · 0.85

Tested by

no test coverage detected